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.
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>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Ethereum, Polygon, Base, Avalanche, Polkadot, Vara sender of the transaction.
transaction to preview.
Show child attributes
smart contract address or external owned account address to interact with
optional. amount of native token to be transferred to the to address in this transactio in hex-encoded with 0x prefix.
If it's a smart contract interaction, the hex-encoded calldata of the smart contract function. (ABI-encoded function with arguments)
optional. hex-encoded with 0x prefix. maximum amount unit of gas to be used in this transaction. If provided, it will override the gas limit estimated by eth_estimateGas.
optional. hex-encoded with 0x prefix. If provided, it will override the gas tip estimated by eth_maxPriorityFeePerGas.
optional. hex-encoded with 0x prefix. maximum amount of native token to be paid per unit of gas in this transaction. If provided, it will override the gas fee cap estimated by WalletKit.
optional. hex-encoded with 0x prefix. the number of transactions made by the sender prior to this one.
Ethereum, Polygon, Base, Avalanche, Polkadot, Vara Show child attributes
Ethereum, Polygon, Base, Avalanche, Polkadot, Vara token, nft, other Show child attributes
Ethereum, Polygon, Base, Avalanche, Polkadot, Vara Show child attributes
Show child attributes
Show child attributes
Ethereum, Polygon, Base, Avalanche, Polkadot, Vara Show child attributes