v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
SDK

Simulate a Solana transaction

post/sdk/{environmentId}/solana/simulateTransaction

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

Request body

chainstring required

The Solana chainId to simulate the transaction on

transactionsstring[] required
accountAddressstring required

Valid Solana wallet address, must be a 44-character string using base58 characters

domainstring
methodstring required

Example request

{
  "chain": "101, 103, 201, mainnet, devnet, etc",
  "accountAddress": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
  "domain": "An example name",
  "method": "An example name"
}

Response

Simulated transaction result

showTotalFiatboolean required

Example response

{
  "inAssets": [
    {
      "asset": {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      }
    }
  ],
  "outAssets": [
    {
      "asset": {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      }
    }
  ],
  "counterparties": [
    "0xbF394748301603f18d953C90F0b087CBEC0E1834"
  ],
  "assetExposures": [
    {
      "asset": {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      }
    }
  ]
}