/sendCasperTransaction
1 min
POST
/sendCasperTransaction
account_idintegerThe account ID to use in this operation.
outputsarray<p>List of tuples representing the destination address and amount to transfer.</p>
<ul>
<li>Format: [(destination_address: str, amount_to_transfer: int)]</li>
<li>In CSPR, it is optional to add a destination tag: [(destination_address: str, amount_to_transfer: int, destination_tag: int)]</li>
</ul>
gas_priceinteger<p>The amount to pay for a unit of gas, in motes.</p>
payment_amountintegerThe amount of gas to pay.
descriptionstringText for describing the transaction in your records. This is not sent to the blockchain.
specificFromAddressstringDeposit address to send from. Cannot be used if the account is defined as an Omnibus account.
acceptstringGenerated from available response content types
bodyobjectRequest object for initiating a transaction.
200success
curl --request POST \
--url '/sendCasperTransaction?account_id=1&outputs=array&gas_price=1&payment_amount=100000000&description=Test&specificFromAddress=01e526b1475ea55490e683d169e9a36b347dd69c24ccbaea43ff678aaa4a08a971' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"FunctionData": {
"AccountId": 1,
"CoinType": "CSPR",
"Fee": {
"GasPrice": "1",
"PaymentAmount": 100000000
},
"Transactions": [
{
"AmountToTransfer": "2500000000",
"DestinationAddress": "01b331699e7581c196288e3183a337bd813f722c913b456a896e18e2790f7ec7c8"
}
]
}
}'