Skip to main content
POST
/
crypto
/
wallets
/
generate
curl -X POST https://secureapi.gridlog.io/api/v1/crypto/wallets/generate \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"chain": "polygon"}'
{
  "address": "0x1A2B3C4D5E6F7A8B9C0D1E2F3A4B5C6D7E8F9A0B",
  "privateKey": "0xabcdef1234567890...",
  "publicKey": "0x04abcdef...",
  "mnemonic": "word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12",
  "derivationPath": "m/44'/60'/0'/0/0"
}
Generates a new HD wallet. This is a stateless operation — the wallet is not stored unless you also call Store Wallet.
chain
string
required
The blockchain to generate a wallet for.Supported values: ethereum, polygon, bsc, solana, tron, stellar, base, arbitrum, optimism
mnemonic
string
Optional existing BIP39 mnemonic phrase to derive the wallet from. If omitted, a new mnemonic is generated.
derivationPath
string
Optional custom BIP44 derivation path. If omitted, the chain default is used.
curl -X POST https://secureapi.gridlog.io/api/v1/crypto/wallets/generate \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"chain": "polygon"}'
{
  "address": "0x1A2B3C4D5E6F7A8B9C0D1E2F3A4B5C6D7E8F9A0B",
  "privateKey": "0xabcdef1234567890...",
  "publicKey": "0x04abcdef...",
  "mnemonic": "word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12",
  "derivationPath": "m/44'/60'/0'/0/0"
}
address
string
The public wallet address to receive funds
privateKey
string
The private key for signing transactions. Keep this secret.
publicKey
string
The public key (distinct from address on some chains)
mnemonic
string
12-word BIP39 seed phrase. Can be used to recover the wallet. Keep this secret.
derivationPath
string
The BIP44 derivation path used
memo
string
Memo/tag value for chains that require it (e.g., Stellar). Present only when applicable.
memoType
string
Memo type — text, id, or hash. Present only when memo is included.
Never expose privateKey or mnemonic to end users or include them in client-side code. Store them encrypted. If either is compromised, all funds in the wallet are at risk.