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.2/services/members HTTP/1.1
HOST: testnet-chain-api.boraecosystem.com

Parameters

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

Response

{
"status" : 200,
"data": {
 "token_addr": "0x1792cdd2529716bc4b403c720884afe92673ff15"
}
}

2Content provider requests payment of BORA Shell from user address

POST /chain/v1/services/deposit 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 paidformDatastring, length(42)
amount*Number of BORA Shell to payformDataint
feeAmount*Number of BORA Shell to feeformDataint

Response

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

3Request BORA Shell transfer between content users

POST /chain/v1.2/services/transfer 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 fromformDatastring, length(42)
toAddr*User Wallet address to receiveformDatastring, length(42)
amount*Number of BORA Shell to payformDataint
feeAmount*Number of BORA Shell to feeformDataint

Response

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