⚡ We welcome businesses to test our enterprise-grade service

Method: POST /wallet/createaccount

dropdown

Method REST /wallet/createaccount example for Tron (TRX)

POST /wallet/createaccount

Method not allowed

Create an account. Uses an already activated account to create a new account

Parameters

owner_address -

string

Owner_address is an activated account, converted to a hex String.If the owner_address has enough bandwidth obtained by freezing TRX, then creating an account will only consume bandwidth , otherwise, 0.1 TRX will be burned to pay for bandwidth, and at the same time, 1 TRX will be required to be created.

account_address -

string

account_address is the address of the new account, converted to a hex string, this address needs to be calculated in advance

visible -

boolean

Optional,whether the address is in base58 format

permission_id -

int32

Optional,for multi-signature use

Request

curl --location --request POST 'https://trx.getblock.io/wallet/createaccount' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"owner_address": "123QWE345F456VEBTRB567XCVE", "account_address": "SDF3BBT46YN56JS554H7J34B", "visible": "true"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}