curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/solana/simulateTransaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chain": "101, 103, 201, mainnet, devnet, etc",
"transactions": [
"<string>"
],
"accountAddress": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
"method": "An example name",
"domain": "An example name"
}
'{
"inAssets": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>",
"chainId": 123
},
"transferIn": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
],
"transferOut": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
]
}
],
"outAssets": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>",
"chainId": 123
},
"transferIn": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
],
"transferOut": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
]
}
],
"priceData": {
"nativeTokenUsdPrice": 123
},
"showTotalFiat": true,
"counterparties": [
"0xbF394748301603f18d953C90F0b087CBEC0E1834"
],
"validation": {
"result": "Benign",
"reason": "<string>",
"description": "<string>",
"classification": "<string>"
},
"assetExposures": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>",
"chainId": 123
},
"spenderToInfo": {}
}
]
}curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/solana/simulateTransaction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chain": "101, 103, 201, mainnet, devnet, etc",
"transactions": [
"<string>"
],
"accountAddress": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
"method": "An example name",
"domain": "An example name"
}
'{
"inAssets": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>",
"chainId": 123
},
"transferIn": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
],
"transferOut": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
]
}
],
"outAssets": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>",
"chainId": 123
},
"transferIn": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
],
"transferOut": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
]
}
],
"priceData": {
"nativeTokenUsdPrice": 123
},
"showTotalFiat": true,
"counterparties": [
"0xbF394748301603f18d953C90F0b087CBEC0E1834"
],
"validation": {
"result": "Benign",
"reason": "<string>",
"description": "<string>",
"classification": "<string>"
},
"assetExposures": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>",
"chainId": 123
},
"spenderToInfo": {}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the environment
36"95b11417-f18f-457f-8804-68e361f9164f"
The Solana chainId to simulate the transaction on
"101, 103, 201, mainnet, devnet, etc"
Valid Solana wallet address, must be a 44-character string using base58 characters
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
255"An example name"
255"An example name"
Simulated transaction result
Show child attributes
Show child attributes
Valid blockchain wallet address, must be an alphanumeric string without any special characters
255"0xbF394748301603f18d953C90F0b087CBEC0E1834"
Show child attributes
Show child attributes
Valid blockchain wallet address, must be an alphanumeric string without any special characters
255"0xbF394748301603f18d953C90F0b087CBEC0E1834"
Valid blockchain wallet address, must be an alphanumeric string without any special characters
255"0xbF394748301603f18d953C90F0b087CBEC0E1834"
Show child attributes
Show child attributes
Valid blockchain wallet address, must be an alphanumeric string without any special characters
255"0xbF394748301603f18d953C90F0b087CBEC0E1834"
Was this page helpful?