BNB Beacon Chain is a blockchain developed by Binance. With Tatum, you can access the most commonly used BNB Beacon Chain methods. These methods bring a certain level of abstraction and are used for applications that communicate with the blockchain directly.
BNB Beacon Chain does not provide the smart contract functionality.
Tatum supports the following BNB Beacon Chain networks:
Generate BNB account. Tatum does not support HD wallet for BNB, only specific address and private key can be generated.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Internal server error. There was an error on the server while processing the request.
{- "address": "tbnb1sfj9981j2eo1ij2e09",
- "privateKey": "cTmS2jBWXgFaXZ2xG9jhn67TiyTshnMp3UedamzEhGm6BZV1vLgQ"
}
Get Binance current block number.
OK
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
6491272
Get Transactions in block by block height.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "timestamp": 1651145988650,
- "blockHeight": 44925860,
- "tx": [
- {
- "txHash": "4B944BBF78F3ADE3A377551B5EA7AD0FEDBDA13165D932F94B106EF7A8E16C1A",
- "blockHeight": 44925860,
- "txType": "TRANSFER",
- "timeStamp": "2019-10-17T18:58:01.423Z",
- "fromAddr": "tbnb138u9djee6fwphhd2a3628q2h0j5w97yx48zqex",
- "toAddr": "tbnb14wu3a8pmauj2kjswyvxtvhdrjktx60efq227uw",
- "value": "200.00000000",
- "txAsset": "BNB",
- "txFee": "0.00037500",
- "code": 0,
- "memo": "",
- "source": 0,
- "sequence": 0
}
]
}
Get Binance Account Detail by address.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "account_number": 696215,
- "address": "tbnb185tqzq3j6y7yep85lncaz9qeectjxqe5054cgn",
- "balances": [
- {
- "free": "207.00000000",
- "frozen": "0.00000000",
- "locked": "0.00000000",
- "symbol": "BNB"
}
], - "flags": 0,
- "sequence": 0
}
Get Binance Transaction by transaction hash.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "code": 0,
- "hash": "4B944BBF78F3ADE3A377551B5EA7AD0FEDBDA13165D932F94B106EF7A8E16C1A",
- "height": "44925860",
- "log": "Msg 0: ",
- "ok": true,
- "tx": {
- "type": "auth/StdTx",
- "value": {
- "memo": "",
- "msg": [
- {
- "type": "cosmos-sdk/Send",
- "value": {
- "inputs": [
- {
- "address": null,
- "coins": [ ]
}
], - "outputs": [
- {
- "address": null,
- "coins": [ ]
}
]
}
}
], - "signatures": [
- {
- "account_number": "14",
- "pub_key": {
- "type": "tendermint/PubKeySecp256k1",
- "value": "A4q95eEn4cR1bbxVRqYc8pbLvKYyaMxjzaTSmkTJQUr6"
}, - "sequence": "47816",
- "signature": "VhewxOCPucjrtrpRbQMbl05i5MyJMrw12nUJ4ATssB1qvCqIO2+Fgqa/WTHaYpkhjJuIbpK620e0zpIQ56a5nw=="
}
], - "source": "0"
}
}
}
Get Binance Transactions by address.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "total": 10,
- "tx": [
- {
- "txHash": "4B944BBF78F3ADE3A377551B5EA7AD0FEDBDA13165D932F94B106EF7A8E16C1A",
- "blockHeight": 44925860,
- "txType": "TRANSFER",
- "timeStamp": "2019-10-17T18:58:01.423Z",
- "fromAddr": "tbnb138u9djee6fwphhd2a3628q2h0j5w97yx48zqex",
- "toAddr": "tbnb14wu3a8pmauj2kjswyvxtvhdrjktx60efq227uw",
- "value": "200.00000000",
- "txAsset": "BNB",
- "txFee": "0.00037500",
- "code": 0,
- "memo": "",
- "source": 0,
- "sequence": 0
}
]
}
Send Binance or Binance Token token from account to account.
This operation needs the private key of the blockchain address. Every time the funds are transferred, the transaction must be signed with the corresponding private key.
No one should ever send it's own private keys to the internet because there is a strong possibility of stealing keys and loss of funds. In this method, it is possible to enter privateKey.
PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production,
Tatum KMS should be used for the highest security standards, and signatureId should be present in the request.
Alternatively, using the Tatum client library for supported languages.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "to": "tbnb138u9djee6fwphhd2a3628q2h0j5w97yx48zqex",
- "currency": "BNB",
- "amount": "100000",
- "fromPrivateKey": "cTmS2jBWXgFaXZ2xG9jhn67TiyTshnMp3UedamzEhGm6BZV1vLgQ"
}
{- "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9"
}
Broadcast signed transaction to Binance blockchain. This method is used internally or Tatum client libraries. It is possible to create custom signing mechanism and use this method only for broadcasting data to the blockchain.
OK
Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.
Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.
Internal server error. There was an error on the server while processing the request.
{- "txData": "62BD544D1B9031EFC330A3E855CC3A0D51CA5131455C1AB3BCAC6D243F65460D"
}
{- "txId": "c83f8818db43d9ba4accfe454aa44fc33123d47a4f89d47b314d6748eb0e9bc9"
}