DOCUMENTS

Documents of the BORA project.

Chain APIs

The Chain API is an API for stacking transaction records in a blockchain

1Request verification for user's Wallet address

GET /chain/v1/services/members HTTP/1.1
HOST: testnet-chain-api.boraecosystem.com

Parameters

ParameterRequiredValuesDescriptionParameter TypeData Type
Authorization*Bearer {User's AccessToken}headerstring

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

ParameterRequiredValuesDescriptionParameter TypeData Type
Authorization*Bearer {Client's AccessToken}headerstring
tokenAddr*User Wallet address to be paidurlstring, length(42)
amount*Number of BORA Shell to payurlint

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

ParameterRequiredValuesDescriptionParameter TypeData Type
Authorization*Bearer {From User's AccessToken}headerstring
fromAddr*User Wallet address to send fromurlstring, length(42)
toAddr*User Wallet address to receiveurlstring, length(42)
amount*Number of BORA Shell to payurlint

Response

{
"tx_app_no": 100004, -- application id
"tx_log_no": "84" -- transaction number
}