Creates a free WAX account.
curl --header 'Content-Type: application/json' https://<baseUrl>/api/v1/activateAccount \
--data '{
"ownerPublicKey": "EOS6DBfLa7c9tgvUBb5LHCAKPG7J1TebFYkYW7sLPZXVhAWWm8zpn",
"activePublicKey": "EOS6DBfLa7c9tgvUBb5LHCAKPG7J1TebFYkYW7sLPZXVhAWWm8zpn"
}'
ownerPublicKey
: The desired owner public key of the account to createactivePublicKey
: The desired active public key of the account to create
type RequestPayload = {
ownerPublicKey: string;
activePublicKey: string;
}
On successful response the account creation transaction was successfuly submitted to the WAX blockchain.
accountName
: The 12-character WAX account name ending in.phoenix
that was created in this requestownerPublicKey
: Same as in the requestactivePublicKey
: Same as in the requesttransactionId
: The transaction ID of the account creation transaction
type SuccessResponse = {
accountName: string;
ownerPublicKey: string;
activePublicKey: string;
transactionId: string;
}
Returns a JSON array of error objects:
type FailureResponse = {
errorCode: string;
message: string;
data?: string;
}[]