X-Chain
Endpoints
/ext/bc/X
to interact with the X-Chain.
/ext/bc/blockchainID
to interact with other AVM instances, where blockchainID
is the ID of a blockchain running the AVM.
Example Method
avm.createAddress
Create a new address controlled by the given user.
Example Call
//Request
curl -X POST --data '{
"jsonrpc": "2.0",
"method": "avm.createAddress",
"params": {
"username":"User",
"password":"PassPass"
},
"id": 1
}' -H 'content-type:application/json;' https://ava-api-x-chain.bwarelabs.com/<your-endpoint-id>/ext/bc/X
//Response
{
"jsonrpc": "2.0",
"result": {
"address": "X-avax12c6n252g5v3w6a6v69f0mnnzwr77jxzr3q3u7d"
},
"id": 1
}
Last updated
Was this helpful?