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

X-WalletKit-Project-ID
string
required

Your WalletKit Project ID can be found on the API Keys page in the WalletKit Dashboard.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
network
enum<string>
required
Available options:
Ethereum,
Polygon,
Base,
Avalanche,
Polkadot,
Vara
from
string
required

sender of the transaction.

unsigned_transactions
object[]
required

a bundle of transactions to preview.

Response

200 - application/json
network
enum<string>
required
Available options:
Ethereum,
Polygon,
Base,
Avalanche,
Polkadot,
Vara
from
string
required
to
string
required
contract
object | null
function_name
string | null
arguments
object | null
simulation
object | null