Transactions
Preview Bundle
Activity
Addresses
NFTs
Tokens
Transactions
Users
Wallets
API Errors
Transactions
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
application/json
Response
200
application/json
The response is of type object[]
.
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>"
}
}
]