curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createaccount \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {},
"raw_data_hex": "<string>"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createaccount \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",
"visible": true
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {},
"raw_data_hex": "<string>"
}owner_address — the address that will create and pay for the new account. Must have sufficient TRX balance to cover the account creation fee.account_address — the new account address to be created and activated on the blockchain.visible — optional boolean parameter. When set to true, addresses are in base58 format. Default is false.visible — indicates the address format used in the responsetxID — the transaction hashraw_data — raw transaction data including:
contract — array containing the account creation contractref_block_bytes — reference block bytesref_block_hash — reference block hashexpiration — transaction expiration timestamptimestamp — transaction creation timestampraw_data_hex — hexadecimal representation of the raw transactionwallet/createaccount method is used for:
owner_address can cover the protocol’s account creation fee. If the owner is not funded, you will get a validation error instead of an unsigned transaction.
curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createaccount' \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",
"visible": true
}'
{
"Error": "class org.tron.core.exception.ContractValidateException : Validate CreateAccountActuator error, insufficient fee."
}
wallet/broadcasttransaction or wallet/broadcasthex.
visible: true or in hex with visible: false.check the payer balance
wallet/getaccount to confirm the owner_address has enough TRX to cover the account creation fee.curl --request POST \
--url 'https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getaccount' \
--header 'Content-Type: application/json' \
--data '{
"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
"visible": true
}'
option: use nile testnet
curl --request POST \
--url 'https://tron-nile.core.chainstack.com/11112222333444555666677778888/wallet/createaccount' \
--header 'Content-Type: application/json' \
--data '{
"owner_address": "TXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"account_address": "TYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY",
"visible": true
}'
owner_address with test TRX from the Nile faucet, then run the call again.sign and broadcast
raw_data with your private key and broadcast via wallet/broadcasttransaction or provide the built hex to wallet/broadcasthex.insufficient fee is expected when the payer has no TRX. Fund the owner_address first or create the account implicitly by sending TRX to the new address.The existing account that pays the account creation fee. Must have sufficient TRX.
The new account address to be activated.
When true, addresses are base58; when false, hex.
Was this page helpful?