Chain APIs
The Chain API is an API for stacking transaction records in a blockchain1Request verification for user's Wallet address
GET /chain/v1/services/members HTTP/1.1
HOST: testnet-chain-api.boraecosystem.com
Parameters
Parameter | Required | Values | Description | Parameter Type | Data Type |
---|---|---|---|---|---|
Authorization | * | Bearer {User's AccessToken} | header | string |
Response
{
"token_addr": "0x1792cdd2529716bc4b403c720884afe92673ff15"
}
2Content provider requests payment of BORA Shell from user address
GET /chain/v1/services/deposit/{tokenAddr}/{amount} HTTP/1.1
HOST: testnet-chain-api.boraecosystem.com
Parameters
Parameter | Required | Values | Description | Parameter Type | Data Type |
---|---|---|---|---|---|
Authorization | * | Bearer {Client's AccessToken} | header | string | |
tokenAddr | * | User Wallet address to be paid | url | string, length(42) | |
amount | * | Number of BORA Shell to pay | url | int |
Response
{
"tx_app_no": 100004, -- application id
"tx_log_no": "84" -- transaction number
}
3Request BORA Shell transfer between content users
GET /chain/v1/services/transfer/{fromAddr}/{toAddr}/{amount} HTTP/1.1
HOST: testnet-chain-api.boraecosystem.com
Parameters
Parameter | Required | Values | Description | Parameter Type | Data Type |
---|---|---|---|---|---|
Authorization | * | Bearer {From User's AccessToken} | header | string | |
fromAddr | * | User Wallet address to send from | url | string, length(42) | |
toAddr | * | User Wallet address to receive | url | string, length(42) | |
amount | * | Number of BORA Shell to pay | url | int |
Response
{
"tx_app_no": 100004, -- application id
"tx_log_no": "84" -- transaction number
}