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

1
//Request
2
curl -X POST --data '{
3
"jsonrpc": "2.0",
4
"method": "avm.createAddress",
5
"params": {
6
"username":"User",
7
"password":"PassPass"
8
},
9
"id": 1
10
}' -H 'content-type:application/json;' https://ava-api-x-chain.bwarelabs.com/<your-endpoint-id>/ext/bc/X
11
12
//Response
13
{
14
"jsonrpc": "2.0",
15
"result": {
16
"address": "X-avax12c6n252g5v3w6a6v69f0mnnzwr77jxzr3q3u7d"
17
},
18
"id": 1
19
}
Copied!
Last modified 4mo ago