Transactions API
Overview
Endpoints for managing blockchain transactions, including transfers, gas estimation, and transaction history.
Send Transaction
Send a raw transaction to the blockchain.
POST api.bloclabs.com/v1/wallets/{wallet_id}/send-transactionRequest
{
"to": "0x789...def",
"value": "1.5",
"asset": "ETH",
"gas_priority": "MEDIUM", // LOW, MEDIUM, HIGH, URGENT
"data": "0x...", // Optional: Contract interaction data
"nonce": 5, // Optional: Custom nonce
"max_fee_per_gas": "50", // Optional: In GWEI
"max_priority_fee": "2" // Optional: In GWEI
}Response
Transfer Assets
High-level endpoint for token transfers.
Request
Response
Estimate Gas
Estimate gas fees for a transaction.
Request
Response
Get Transaction Status
Check the status of a specific transaction.
Response
Get Transaction History
Retrieve transaction history for a wallet.
Query Parameters
Response
Error Responses
Insufficient Funds
Transaction Failed
Invalid Gas Price
Notes
Always estimate gas before sending transactions
Transactions are irreversible once confirmed
Gas prices can fluctuate rapidly
Keep track of nonce for multiple transactions
Last updated
Was this helpful?