cURL
curl --request POST \ --url https://testnet.walletkit.com/transactions/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "network": "Ethereum", "from": "<string>", "unsigned_transaction": { "to": "<string>", "value": "<string>", "input": "<string>", "gasLimit": "<string>", "maxPriorityFeePerGas": "<string>", "maxFeePerGas": "<string>", "nonce": "<string>" } } '
{ "network": "Ethereum", "from": "<string>", "to": "<string>", "contract": { "network": "Ethereum", "address": "<string>", "type": "token", "name": "<string>", "logo_url": "<string>", "token": { "uuid": "<string>", "network": "Ethereum", "contract_address": "<string>", "name": "<string>", "symbol": "<string>", "decimals": 123, "display_decimals": 123, "logo_url": "<string>" }, "nft": { "network": "Ethereum", "contract_address": "<string>", "name": "<string>", "image_url": "<string>", "symbol": "<string>" } }, "function_name": "<string>", "arguments": {}, "simulation": { "success": true, "asset_changes": [ { "amount": "<string>", "raw_amount": "<string>", "from": "<string>", "to": "<string>", "token": { "uuid": "<string>", "network": "Ethereum", "contract_address": "<string>", "name": "<string>", "symbol": "<string>", "decimals": 123, "display_decimals": 123, "logo_url": "<string>" }, "nft": { "owner_wallet_address": "<string>", "contract_address": "<string>", "token_id": "<string>", "metadata": { "name": "<string>", "description": "<string>", "image": "<string>" } } } ], "error": "<string>" } }
This endpoint allows you to preview a transaction’s execution without sending it to the blockchain.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Ethereum
Polygon
Base
Avalanche
Polkadot
Vara
sender of the transaction.
transaction to preview.
Show child attributes