Generates a new HD wallet. This is a stateless operation — the wallet is not stored unless you also call Store Wallet.
The blockchain to generate a wallet for. Supported values: ethereum, polygon, bsc, solana, tron, stellar, base, arbitrum, optimism
Optional existing BIP39 mnemonic phrase to derive the wallet from. If omitted, a new mnemonic is generated.
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"}'
Polygon / EVM
Solana
Stellar
{
"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"
}
The public wallet address to receive funds
The private key for signing transactions. Keep this secret.
The public key (distinct from address on some chains)
12-word BIP39 seed phrase. Can be used to recover the wallet. Keep this secret.
The BIP44 derivation path used
Memo/tag value for chains that require it (e.g., Stellar). Present only when applicable.
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.