Activity
Addresses
NFTs
Tokens
Transactions
Users
Wallets
API Errors
Preview Bundle
This endpoint allows you to preview a bundle of transactions as it would execute on chain and returns results for each transaction.
curl --request POST \
--url https://testnet.walletkit.com/transactions/preview-bundle \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"network": "Ethereum",
"from": "<string>",
"unsigned_transactions": [
{
"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>",
"symbol": "<string>",
"image_url": "<string>"
}
},
"function_name": "<string>",
"arguments": {},
"simulation": {
"success": true,
"asset_changes": [
{
"token": {
"uuid": "<string>",
"network": "Ethereum",
"contract_address": "<string>",
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"display_decimals": 123,
"logo_url": "<string>"
},
"nft": {
"metadata": {
"name": "<string>",
"description": "<string>",
"image": "<string>"
},
"owner_wallet_address": "<string>",
"contract_address": "<string>",
"token_id": "<string>"
},
"amount": "<string>",
"raw_amount": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"error": "<string>"
}
}
]
Headers
Your WalletKit Project ID can be found on the API Keys page in the WalletKit Dashboard.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Ethereum
, Polygon
, Base
, Avalanche
, Polkadot
, Vara
sender of the transaction.
a bundle of transactions to preview.
input of a transaction.
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.
Response
Ethereum
, Polygon
, Base
, Avalanche
, Polkadot
, Vara
Ethereum
, Polygon
, Base
, Avalanche
, Polkadot
, Vara
token
, nft
, other
Ethereum
, Polygon
, Base
, Avalanche
, Polkadot
, Vara
Ethereum
, Polygon
, Base
, Avalanche
, Polkadot
, Vara
curl --request POST \
--url https://testnet.walletkit.com/transactions/preview-bundle \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"network": "Ethereum",
"from": "<string>",
"unsigned_transactions": [
{
"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>",
"symbol": "<string>",
"image_url": "<string>"
}
},
"function_name": "<string>",
"arguments": {},
"simulation": {
"success": true,
"asset_changes": [
{
"token": {
"uuid": "<string>",
"network": "Ethereum",
"contract_address": "<string>",
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"display_decimals": 123,
"logo_url": "<string>"
},
"nft": {
"metadata": {
"name": "<string>",
"description": "<string>",
"image": "<string>"
},
"owner_wallet_address": "<string>",
"contract_address": "<string>",
"token_id": "<string>"
},
"amount": "<string>",
"raw_amount": "<string>",
"from": "<string>",
"to": "<string>"
}
],
"error": "<string>"
}
}
]