POST /transactions
Posts a signed transaction on the blockchain
Parameters
chainId
:(number)
data
OPTIONAL(string)
gasLimit
:(number)
- The maximum number of gas units allocated for the transactiongasPrice
:(number)
- The gas price to be used in the scope of the transactionnonce:
(number)
- The account sequence numbersender
OPTIONAL :(string)
- Address of the transaction senderreceiver
OPTIONAL :(string)
- Address of the transaction receiversignature
:(string)
- The Signature (hex-encoded) of the Transactionvalue
:(string)
- value amountversion
:(number)
- version value
Returns
receiver:
(string)
- The address of the receiver (bech32 format)receiverShard
:(number)
- The shard ID allocated to the receiversender
:(string)
- The address of the sender (bech32 format)senderShard
:(number)
- The shard ID allocated to the senderstatus
:(string)
- Transaction status (success or executed, invalid, pending, partially-executed, received, failed)txHash
:(string)
- The hash of the transaction
Example
Request
curl -X 'POST' \
'https://https://elrond-api.public.blastapi.io/transactions' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"chainId": "2",
"data": "string",
"gasLimit": 0.01,
"gasPrice": 0.01,
"nonce": 2,
"receiver": "erd1qqqqqqqqqqqqqpgqhe8t5jewej70zupmh44jurgn29psua5l2jps3ntjj3",
"sender": "erd1te7tsja33s33dtgyga29m7jv6h7wuln96ptfjuu5gw0z2cvjgx6sn8qutd",
"signature": "d50cc7121f93c28b566ce604221f1f3cd6cfc177dbecce97716a9f03eb0cdd4b5473ce094cef02ad995e75f6718627d3aae4e4b0e5bbfaf27d6b8d279cd64e05",
"value": "15",
"version": 0
}'
Result
{
"receiver": "string",
"receiverShard": 0,
"sender": "string",
"senderShard": 0,
"status": "string",
"txHash": "string"
}