/sendStarknetTransaction
1 min
POST
/sendStarknetTransaction
account_idintegerThe account ID to use for this transaction.
outputsarray<p>List of tuples representing the destination address and amount to transfer.
Format: [(destination_address: str, amount_to_transfer: str)]
All Starknet addresses should be in hex format starting with "0x".</p>
descriptionstringInternal description for transaction records. Not sent to the blockchain.
specificFromAddressstringThe specific deposit address to send from. Cannot be used if the account is defined as an Omnibus account.
ignore_amlboolean<p>If True, the AML (Anti-Money Laundering) check will be bypassed.</p>
aml_notestring<p>Required note explaining why AML decision is being overridden. Only applicable when ignore_aml is True.</p>
resource_bounds_mappingobjectMapping of ResourceBounds objects to set up a smart contract transaction. with list of l1 gas.
acceptstringGenerated from available response content types
bodyobjectRequest object for initiating a transaction.
200success
curl --request POST \
--url '/sendStarknetTransaction?account_id=1&outputs=array&description=Test&specificFromAddress=TPxb...9rQre&ignore_aml=**Not%20yet.&aml_note=**Not%20yet.&resource_bounds_mapping=resource_bounds_mapping%3DResourceBoundsMapping(l1_gas%3DResourceBounds(10000%2C%2050000)%2Cl2_gas%3DResourceBounds(1000%2C%203000)%2Cl1_data%3DResourceBounds(8000%2C%2010000))' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"FunctionData": {
"AccountId": 1,
"CoinType": "STRK",
"Fee": {
"GasLimit": "10000",
"GasPrice": "1047943695835782"
},
"Transactions": [
{
"AmountToTransfer": "1000000000000",
"DestinationAddress": "0x00b8a19d6fAb26b495958506467de9Fa849e66BfbF14CdDAAD34bAD95f4CB3dc"
}
]
}
}'