SPB Git

Repository Public

swap-bridge-quote.json 4.9 KB 174 lines json

1{2  "source": "shape copied from services/api/src/bridge.ts GET /bridge/quote and bridge-sol.ts solQuoteExtras / token-account routes; option references computed by the real cctpQuoteRef",3  "evm": {4    "from": "base",5    "to": "arbitrum",6    "fromName": "Base",7    "toName": "Arbitrum One",8    "amount": "50000000",9    "symbol": "USDC",10    "options": [11      {12        "speed": "standard",13        "available": true,14        "fee": "0",15        "feeDisplay": "0",16        "minReceive": "50000000",17        "minReceiveDisplay": "50",18        "seconds": 1140,19        "quote": {20          "id": "cctp-standard-base-arbitrum-50000000",21          "provider": "cctp",22          "amountOut": "50000000",23          "minAmountOut": "50000000",24          "quotedAt": 1795000000123,25          "fingerprint": "84262ef4100f705bf75c16b0ab0b6282"26        }27      },28      {29        "speed": "fast",30        "available": true,31        "fee": "6500",32        "feeDisplay": "0.0065",33        "minReceive": "49993500",34        "minReceiveDisplay": "49.9935",35        "seconds": 8,36        "quote": {37          "id": "cctp-fast-base-arbitrum-50000000",38          "provider": "cctp",39          "amountOut": "49993500",40          "minAmountOut": "49993500",41          "quotedAt": 1795000000123,42          "fingerprint": "48cd8b0bb4489bdc6f1a8ec669f073bc"43        }44      }45    ],46    "destinationGas": {47      "symbol": "ETH",48      "need": "48000000000000",49      "needDisplay": "0.000048",50      "balance": "2000000000000000",51      "balanceDisplay": "0.002",52      "enough": true53    }54  },55  "fromSolana": {56    "from": "solana",57    "to": "base",58    "fromName": "Solana",59    "toName": "Base",60    "amount": "50000000",61    "symbol": "USDC",62    "options": [63      {64        "speed": "standard",65        "available": true,66        "fee": "0",67        "feeDisplay": "0",68        "minReceive": "50000000",69        "minReceiveDisplay": "50",70        "seconds": 1140,71        "quote": {72          "id": "cctp-standard-solana-base-50000000",73          "provider": "cctp",74          "amountOut": "50000000",75          "minAmountOut": "50000000",76          "quotedAt": 1795000000123,77          "fingerprint": "4af549adb68a146f9531693be63d689b"78        }79      },80      {81        "speed": "fast",82        "available": true,83        "fee": "6500",84        "feeDisplay": "0.0065",85        "minReceive": "49993500",86        "minReceiveDisplay": "49.9935",87        "seconds": 8,88        "quote": {89          "id": "cctp-fast-solana-base-50000000",90          "provider": "cctp",91          "amountOut": "49993500",92          "minAmountOut": "49993500",93          "quotedAt": 1795000000123,94          "fingerprint": "bd79e8be16fe43747e24110b296a6f25"95        }96      }97    ],98    "destinationGas": {99      "symbol": "ETH",100      "need": "360000000000",101      "needDisplay": "0.00000036",102      "balance": "0",103      "balanceDisplay": "0",104      "enough": false105    },106    "solana": {107      "role": "source",108      "deposit": "3883680",109      "depositDisplay": "0.00388368",110      "reclaimAfterSeconds": 432000,111      "networkFeeDisplay": "0.0000104",112      "symbol": "SOL"113    }114  },115  "toSolana": {116    "from": "ethereum",117    "to": "solana",118    "fromName": "Ethereum",119    "toName": "Solana",120    "amount": "50000000",121    "symbol": "USDC",122    "options": [123      {124        "speed": "standard",125        "available": true,126        "fee": "0",127        "feeDisplay": "0",128        "minReceive": "50000000",129        "minReceiveDisplay": "50",130        "seconds": 1140,131        "quote": {132          "id": "cctp-standard-ethereum-solana-50000000",133          "provider": "cctp",134          "amountOut": "50000000",135          "minAmountOut": "50000000",136          "quotedAt": 1795000000123,137          "fingerprint": "65f8b092a6e246e80499b1c6c209fadc"138        }139      }140    ],141    "destinationGas": {142      "symbol": "SOL",143      "need": "1010000",144      "needDisplay": "0.00101",145      "balance": "25000000",146      "balanceDisplay": "0.025",147      "enough": true148    },149    "solana": {150      "role": "destination",151      "recipient": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",152      "tokenAccount": "C4PRXFV6Gf5mytVZb6RoeLsG8CjcFWzR2EJ3dvwPTUJH",153      "tokenAccountExists": false,154      "tokenAccountRentDisplay": "0.00203928",155      "nonceRentDisplay": "0.00095352",156      "symbol": "SOL"157    }158  },159  "tokenAccount": {160    "owner": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",161    "tokenAccount": "C4PRXFV6Gf5mytVZb6RoeLsG8CjcFWzR2EJ3dvwPTUJH",162    "exists": false,163    "rent": "2039280",164    "rentDisplay": "0.00203928",165    "symbol": "SOL"166  },167  "tokenAccountCreated": {168    "txid": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW",169    "explorer": "https://solscan.io/tx/5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW",170    "tokenAccount": "C4PRXFV6Gf5mytVZb6RoeLsG8CjcFWzR2EJ3dvwPTUJH",171    "sent": true172  }173}174
Files main
Menu

Theme