Rest API
- Introduction
- GlobalWallets
- GlobalWalletAccessControl
- NameServices
- TestAccount
- CustomHostnames
- Exports
- Gates
- Settings
- Analytics
- Organizations
- Projects
- Custom Networks
- Chainalysis
- Environments
- Sessions
- Wallets
- Users
- Visits
- Members
- MfaSettings
- Invites
- ExternalJwt
- Origins
- UserApiTokens
- Tokens
- Allowlists
- Chains
- SDK Views
- Events
- Webhooks
- SDK
- Authentication & Authorization
- Wallet Management
- Transaction & Network
- User Management
- Security & Compliance
- Integration & Configuration
- Analytics & Monitoring
- Provider Integration
- Custom Fields
- DeeplinkUrls
- Mfa
- Waas
Transaction & Network
Simulate a Solana transaction
POST
/
sdk
/
{environmentId}
/
solana
/
simulateTransaction
Copy
Ask AI
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/solana/simulateTransaction \
--header 'Content-Type: application/json' \
--data '{
"chain": "101, 103, 201, mainnet, devnet, etc",
"transactions": [
"<string>"
],
"accountAddress": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
"domain": "An example name",
"method": "An example name"
}'
Copy
Ask AI
{
"inAssets": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainId": 123,
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>"
},
"transferIn": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
],
"transferOut": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
]
}
],
"outAssets": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainId": 123,
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>"
},
"transferIn": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
],
"transferOut": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
]
}
],
"counterparties": [
"0xbF394748301603f18d953C90F0b087CBEC0E1834"
],
"priceData": {
"nativeTokenUsdPrice": 123
},
"showTotalFiat": true,
"validation": {
"result": "Benign",
"description": "<string>",
"reason": "<string>",
"classification": "<string>"
},
"assetExposures": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainId": 123,
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>"
},
"spenderToInfo": {}
}
]
}
Path Parameters
ID of the environment
Required string length:
36
Example:
"95b11417-f18f-457f-8804-68e361f9164f"
Body
application/json
Response
200
application/json
Simulated transaction result
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/solana/simulateTransaction \
--header 'Content-Type: application/json' \
--data '{
"chain": "101, 103, 201, mainnet, devnet, etc",
"transactions": [
"<string>"
],
"accountAddress": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
"domain": "An example name",
"method": "An example name"
}'
Copy
Ask AI
{
"inAssets": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainId": 123,
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>"
},
"transferIn": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
],
"transferOut": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
]
}
],
"outAssets": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainId": 123,
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>"
},
"transferIn": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
],
"transferOut": [
{
"rawValue": "<string>",
"summary": "<string>",
"usdPrice": "<string>",
"value": "<string>"
}
]
}
],
"counterparties": [
"0xbF394748301603f18d953C90F0b087CBEC0E1834"
],
"priceData": {
"nativeTokenUsdPrice": 123
},
"showTotalFiat": true,
"validation": {
"result": "Benign",
"description": "<string>",
"reason": "<string>",
"classification": "<string>"
},
"assetExposures": [
{
"asset": {
"address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"chainId": 123,
"chainName": "<string>",
"decimals": 123,
"logoUrl": "<string>",
"name": "<string>",
"symbol": "<string>",
"type": "<string>"
},
"spenderToInfo": {}
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.