Stellar
/getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
address* | String | The public address to get the balance of. |
issuer | String | The public address of the issuer. |
assetCode | String | The code of asset to get the balance of. *Required, if issuer address is provided. |
https://api.expand.network/chain/getbalance/?chainId=1500&address=GC4KAS6W2YCGJGLP633A6F6AKTCV4WSLMTMIQRSEQE5QRRVKSX7THV6S&issuer=GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M&assetCode=VELO
{
"status": 200,
"msg": "success",
"data": {
"assetCode": "VELO",
"issuer": "GDM4RQUQQUVSKQA7S6EM7XBZP3FCGH4Q7CL6TABQ7B2BEJ5ERARM2M5M",
"balance": "2555109235706160"
}
}
/getblock
Get details for a specified block (ledger).
GET
https://historicallp.api.expand.network/chain/getblock
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
blockNumber* | String | Sequence number of the ledger. |
https://historicallp.api.expand.network/chain/getblock?chainId=1500&blockNumber=50755373
{
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": null,
"hash": "691675c6d439f546fc4996740a3ab899f77b11eca15890e4035a6196de194720",
"miner": null,
"nonce": null,
"number": 50755373,
"parentHash": "b734852cf9763646a2c42da652a06d309ce928e0a877fa70a6ce9981f79954d8",
"size": null,
"timestamp": 1710228542,
"totalDifficulty": null,
"transactions": [
{
"hash": "f4c5391ab820ef19f2cd0df68789336f04ac316d4fdf705545a0062194c3f3f1",
"transactionStatus": true,
"blockNumber": "50755373",
"timestamp": "1710228542000",
"from": "GDBUC4SQVYSI3EDT3QT26UABN2POJ355CDA5CUUVDGWWI2PDWB2MJQWN",
"to": null,
"value": null,
"transactionFees": "100",
"gas": "250005",
"gasPrice": "100",
"input": null,
"nonce": 175248559896083620,
"network": null,
"transactionEnvelop": [
{
"type": "TransactionEnvelope",
"value": "[envelopeTypeTx]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "tx",
"nodes": [
{
"type": "sourceAccount",
"value": "[keyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDBUC4SQVYSI3EDT3QT26UABN2POJ355CDA5CUUVDGWWI2PDWB2MJQWN"
}
}
]
},
{
"type": "fee",
"value": "250005"
},
{
"type": "seqNum",
"value": "175248559896083608"
},
{
"type": "cond",
"value": "[precondTime]",
"nodes": [
{
"type": "timeBounds",
"nodes": [
{
"type": "minTime",
"value": "0"
},
{
"type": "maxTime",
"value": "1710228571"
}
]
}
]
},
{
"type": "memo",
"value": "[memoNone]"
},
{
"type": "operations",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "sourceAccount",
"value": "[keyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
}
}
]
},
{
"type": "body",
"value": "[manageBuyOffer]",
"nodes": [
{
"type": "manageBuyOfferOp",
"nodes": [
{
"type": "selling",
"value": "[assetTypeNative]"
},
{
"type": "buying",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"yUSDC "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
}
}
]
}
]
}
]
},
{
"type": "buyAmount",
"value": "50192138338"
},
{
"type": "price",
"nodes": [
{
"type": "n",
"value": "1000"
},
{
"type": "d",
"value": "199999"
}
]
},
{
"type": "offerId",
"value": "0"
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
},
{
"type": "signatures",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "hint",
"value": {
"type": "code",
"value": "G______________________________________________UGNO6____"
}
},
{
"type": "signature",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
202,
255,
202,
117,
226,
24,
210,
21,
54,
44,
16,
32,
92,
176,
255,
253,
196,
126,
9,
93,
6,
113,
1,
23,
251,
190,
231,
4,
6,
68,
141,
99,
213,
48,
225,
54,
14,
219,
28,
247,
74,
60,
97,
134,
7,
115,
162,
105,
183,
133,
155,
154,
177,
88,
63,
215,
70,
84,
74,
189,
248,
54,
169,
15
]
},
"value": "yv/KdeIY0hU2LBAgXLD//cR+CV0GcQEX+77nBAZEjWPVMOE2Dtsc90o8YYYHc6Jpt4WbmrFYP9dGVEq9+DapDw=="
}
}
]
},
{
"type": "[1]",
"nodes": [
{
"type": "hint",
"value": {
"type": "code",
"value": "G______________________________________________DWB2M____"
}
},
{
"type": "signature",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
213,
153,
194,
52,
85,
57,
113,
3,
104,
213,
78,
155,
205,
161,
80,
177,
128,
16,
60,
130,
251,
2,
124,
52,
9,
67,
91,
253,
154,
13,
213,
188,
7,
84,
58,
205,
172,
39,
93,
196,
241,
218,
166,
246,
181,
82,
7,
247,
21,
253,
27,
141,
52,
78,
71,
138,
146,
86,
245,
156,
170,
199,
159,
6
]
},
"value": "1ZnCNFU5cQNo1U6bzaFQsYAQPIL7Anw0CUNb/ZoN1bwHVDrNrCddxPHapva1Ugf3Ff0bjTROR4qSVvWcqsefBg=="
}
}
]
}
]
}
]
}
]
}
],
"transactionResult": [
{
"type": "TransactionResult",
"nodes": [
{
"type": "feeCharged",
"value": "100"
},
{
"type": "result",
"value": "[txSuccess]",
"nodes": [
{
"type": "results",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[opInner]",
"nodes": [
{
"type": "tr",
"value": "[manageBuyOffer]",
"nodes": [
{
"type": "manageBuyOfferResult",
"value": "[manageBuyOfferSuccess]",
"nodes": [
{
"type": "success",
"nodes": [
{
"type": "offersClaimed",
"value": "Array[0]",
"nodes": []
},
{
"type": "offer",
"value": "[manageOfferCreated]",
"nodes": [
{
"type": "offer",
"nodes": [
{
"type": "sellerId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
}
}
]
},
{
"type": "offerId",
"value": "1492969708"
},
{
"type": "selling",
"value": "[assetTypeNative]"
},
{
"type": "buying",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"yUSDC "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
}
}
]
}
]
}
]
},
{
"type": "amount",
"value": {
"type": "amount",
"value": {
"parsed": "25.0961946",
"raw": "250961946"
}
}
},
{
"type": "price",
"nodes": [
{
"type": "n",
"value": "199999"
},
{
"type": "d",
"value": "1000"
}
]
},
{
"type": "flags",
"value": "0"
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
],
"transactionMeta": [
{
"type": "TransactionMeta",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "txChangesBefore",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50755373"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDBUC4SQVYSI3EDT3QT26UABN2POJ355CDA5CUUVDGWWI2PDWB2MJQWN"
}
}
]
},
{
"type": "balance",
"value": "28406087"
},
{
"type": "seqNum",
"value": "175248559896083607"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "0"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": []
},
"value": ""
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50755234"
},
{
"type": "seqTime",
"value": "1710227684"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50755373"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDBUC4SQVYSI3EDT3QT26UABN2POJ355CDA5CUUVDGWWI2PDWB2MJQWN"
}
}
]
},
{
"type": "balance",
"value": "28406087"
},
{
"type": "seqNum",
"value": "175248559896083608"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "0"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": []
},
"value": ""
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50755373"
},
{
"type": "seqTime",
"value": "1710228542"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
},
{
"type": "operations",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "changes",
"value": "Array[5]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50755373"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
}
}
]
},
{
"type": "balance",
"value": "130824249934"
},
{
"type": "seqNum",
"value": "157510589776673723"
},
{
"type": "numSubEntries",
"value": "825"
},
{
"type": "inflationDest",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDCHDRSDOBRMSUDKRE2C4U4KDLNEATJPIHHR2ORFL5BSD56G4DQXL4VW"
}
}
]
},
{
"type": "flags",
"value": "0"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
108,
111,
98,
115,
116,
114,
46,
99,
111
]
},
"value": "bG9ic3RyLmNv"
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "368268802115"
},
{
"type": "selling",
"value": "93084825646"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50746677"
},
{
"type": "seqTime",
"value": "1710176726"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50755373"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
}
}
]
},
{
"type": "balance",
"value": "130824249934"
},
{
"type": "seqNum",
"value": "157510589776673723"
},
{
"type": "numSubEntries",
"value": "826"
},
{
"type": "inflationDest",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDCHDRSDOBRMSUDKRE2C4U4KDLNEATJPIHHR2ORFL5BSD56G4DQXL4VW"
}
}
]
},
{
"type": "flags",
"value": "0"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
108,
111,
98,
115,
116,
114,
46,
99,
111
]
},
"value": "bG9ic3RyLmNv"
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "368268802115"
},
{
"type": "selling",
"value": "93335787592"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50746677"
},
{
"type": "seqTime",
"value": "1710176726"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[2]",
"value": "[ledgerEntryCreated]",
"nodes": [
{
"type": "created",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50755373"
},
{
"type": "data",
"value": "[offer]",
"nodes": [
{
"type": "offer",
"nodes": [
{
"type": "sellerId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
}
}
]
},
{
"type": "offerId",
"value": "1492969708"
},
{
"type": "selling",
"value": "[assetTypeNative]"
},
{
"type": "buying",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"yUSDC "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
}
}
]
}
]
}
]
},
{
"type": "amount",
"value": {
"type": "amount",
"value": {
"parsed": "25.0961946",
"raw": "250961946"
}
}
},
{
"type": "price",
"nodes": [
{
"type": "n",
"value": "199999"
},
{
"type": "d",
"value": "1000"
}
]
},
{
"type": "flags",
"value": "0"
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[3]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50755373"
},
{
"type": "data",
"value": "[trustline]",
"nodes": [
{
"type": "trustLine",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
}
}
]
},
{
"type": "asset",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"yUSDC "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
}
}
]
}
]
}
]
},
{
"type": "balance",
"value": "0"
},
{
"type": "limit",
"value": {
"type": "amount",
"value": {
"parsed": "922337203685.4775807",
"raw": "9223372036854775807"
}
}
},
{
"type": "flags",
"value": "1"
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "31000000186065605"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[4]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50755373"
},
{
"type": "data",
"value": "[trustline]",
"nodes": [
{
"type": "trustLine",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBWHHC2FRUS2RG7EVWOZ3YMRN45VXCS4ILGVCX2QALBUFVHUGNO6P4IY"
}
}
]
},
{
"type": "asset",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"yUSDC "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GDGTVWSM4MGS4T7Z6W4RPWOCHE2I6RDFCIFZGS3DOA63LWQTRNZNTTFF"
}
}
]
}
]
}
]
},
{
"type": "balance",
"value": "0"
},
{
"type": "limit",
"value": {
"type": "amount",
"value": {
"parsed": "922337203685.4775807",
"raw": "9223372036854775807"
}
}
},
{
"type": "flags",
"value": "1"
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "31000050378203843"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
}
]
},
{
"type": "txChangesAfter",
"value": "Array[0]",
"nodes": []
},
{
"type": "sorobanMeta",
"value": null
}
]
}
]
}
]
}
]
},
"transactionsRoot": null,
"uncles": null
}
/getgasprice
Get the current gas price from the Stellar network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
https://api.expand.network/chain/getgasprice/?chainSymbol=xlm
{
"status": 200,
"msg": "success",
"data": {
"gasPrice": "100"
}
}
/getstorage
Get details of storage in the contract, including the current state of contract, contract code or any other ledger entry.
GET
https://api.expand.network/chain/getstorage
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
keys* | String | The key of the ledger entry (serialized in a base64 string). |
https://api.expand.network/chain/getstorage?chainId=1500&keys=AAAABgAAAAFV3d0a2VhBZ%2B54%2Fg6tRMfgt%2BWajUevdHo3A8wtDuWS%2BQAAABQAAAAB
{
"status": 200,
"msg": "success",
"data": {
"entries": [
{
"key": "AAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAAB",
"xdr": "AAAABgAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAUAAAAAQAAABMAAAAACxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAAAQAAAA8AAAAHQ09VTlRFUgAAAAADAAAAAQ==",
"lastModifiedLedgerSeq": 51103914,
"liveUntilLedgerSeq": 53177504,
"xdrDecoded": [
{
"type": "LedgerEntryData",
"value": "[contractData]",
"nodes": [
{
"type": "contractData",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "contract",
"value": "[scAddressTypeContract]",
"nodes": [
{
"type": "contractId",
"value": "CBK53XI23FMECZ7OPD7A5LKEY7QLPZM2RVD265D2G4B4YLIO4WJPTY7Y"
}
]
},
{
"type": "key",
"value": "[scvLedgerKeyContractInstance]"
},
{
"type": "durability",
"value": {
"name": "persistent",
"value": 1
}
},
{
"type": "val",
"value": "[scvContractInstance]",
"nodes": [
{
"type": "instance",
"value": "CxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0="
}
]
}
]
}
]
}
]
}
]
}
}
/gettransaction
Get details of a specified transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
transactionHash* | String | The transaction hash. |
https://api.expand.network/chain/gettransaction/?chainId=1500&transactionHash=3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7
{
"status": 200,
"msg": "success",
"data": {
"hash": "3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7",
"transactionStatus": true,
"blockNumber": "50864752",
"timestamp": "1710893324000",
"from": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
"to": null,
"value": null,
"transactionFees": "2129796",
"gas": "2454018",
"gasPrice": "100",
"input": null,
"nonce": 163399020004245540,
"network": null,
"transactionEnvelop": [
{
"type": "TransactionEnvelope",
"value": "[envelopeTypeTx]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "tx",
"nodes": [
{
"type": "sourceAccount",
"value": "[keyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "fee",
"value": "2454018"
},
{
"type": "seqNum",
"value": "163399020004245540"
},
{
"type": "cond",
"value": "[precondNone]"
},
{
"type": "memo",
"value": "[memoNone]"
},
{
"type": "operations",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "sourceAccount",
"value": null
},
{
"type": "body",
"value": "[invokeHostFunction]",
"nodes": [
{
"type": "invokeHostFunctionOp",
"nodes": [
{
"type": "hostFunction",
"value": "[hostFunctionTypeCreateContract]",
"nodes": [
{
"type": "createContract",
"nodes": [
{
"type": "contractIdPreimage",
"value": "[contractIdPreimageFromAsset]",
"nodes": [
{
"type": "fromAsset",
"value": "[assetTypeCreditAlphanum4]",
"nodes": [
{
"type": "alphaNum4",
"nodes": [
{
"type": "assetCode",
"value": "BTFo"
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
}
]
}
]
}
]
},
{
"type": "executable",
"value": "[contractExecutableStellarAsset]"
}
]
}
]
},
{
"type": "auth",
"value": "Array[0]",
"nodes": []
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "sorobanData",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "resources",
"nodes": [
{
"type": "footprint",
"nodes": [
{
"type": "readOnly",
"value": "Array[0]",
"nodes": []
},
{
"type": "readWrite",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[contractData]",
"nodes": [
{
"type": "contractData",
"nodes": [
{
"type": "contract",
"value": "[scAddressTypeContract]",
"nodes": [
{
"type": "contractId",
"value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
}
]
},
{
"type": "key",
"value": "[scvLedgerKeyContractInstance]"
},
{
"type": "durability",
"value": {
"name": "persistent",
"value": 1
}
}
]
}
]
}
]
}
]
},
{
"type": "instructions",
"value": "3114111"
},
{
"type": "readBytes",
"value": "0"
},
{
"type": "writeBytes",
"value": "476"
}
]
},
{
"type": "resourceFee",
"value": "2133829"
}
]
}
]
}
]
},
{
"type": "signatures",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "hint",
"value": {
"type": "code",
"value": "G______________________________________________Z4TF2____"
}
},
{
"type": "signature",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
141,
201,
205,
145,
217,
190,
184,
119,
165,
253,
195,
24,
53,
138,
0,
184,
39,
32,
212,
17,
10,
55,
181,
149,
219,
82,
178,
151,
26,
160,
120,
31,
189,
149,
135,
125,
217,
107,
174,
150,
89,
227,
15,
18,
215,
169,
144,
23,
171,
26,
105,
94,
177,
244,
63,
17,
144,
91,
10,
102,
236,
117,
114,
2
]
},
"value": "jcnNkdm+uHel/cMYNYoAuCcg1BEKN7WV21KylxqgeB+9lYd92WuullnjDxLXqZAXqxppXrH0PxGQWwpm7HVyAg=="
}
}
]
}
]
}
]
}
]
}
],
"transactionResult": [
{
"type": "TransactionResult",
"nodes": [
{
"type": "feeCharged",
"value": "2129796"
},
{
"type": "result",
"value": "[txSuccess]",
"nodes": [
{
"type": "results",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[opInner]",
"nodes": [
{
"type": "tr",
"value": "[invokeHostFunction]",
"nodes": [
{
"type": "invokeHostFunctionResult",
"value": "[invokeHostFunctionSuccess]",
"nodes": [
{
"type": "success",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
192,
151,
213,
158,
159,
153,
7,
23,
199,
248,
157,
2,
192,
179,
161,
181,
23,
27,
107,
231,
186,
1,
89,
3,
36,
242,
34,
236,
49,
130,
143,
121
]
},
"value": "wJfVnp+ZBxfH+J0CwLOhtRcba+e6AVkDJPIi7DGCj3k="
}
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
],
"transactionMeta": [
{
"type": "TransactionMeta",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "txChangesBefore",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "balance",
"value": "9773523570"
},
{
"type": "seqNum",
"value": "163399020004245539"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "11"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
100,
101,
118,
46,
98,
108,
111,
99,
107,
116,
105,
109,
101,
102,
105,
110,
97,
110,
99,
105,
97,
108,
46,
99,
111,
109
]
},
"value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50864748"
},
{
"type": "seqTime",
"value": "1710893300"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "balance",
"value": "9773523570"
},
{
"type": "seqNum",
"value": "163399020004245540"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "11"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
100,
101,
118,
46,
98,
108,
111,
99,
107,
116,
105,
109,
101,
102,
105,
110,
97,
110,
99,
105,
97,
108,
46,
99,
111,
109
]
},
"value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50864752"
},
{
"type": "seqTime",
"value": "1710893324"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
},
{
"type": "operations",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "changes",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryCreated]",
"nodes": [
{
"type": "created",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[ttl]",
"nodes": [
{
"type": "ttl",
"nodes": [
{
"type": "keyHash",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
138,
38,
129,
100,
173,
249,
191,
8,
213,
64,
104,
81,
33,
35,
140,
116,
70,
85,
31,
169,
198,
140,
228,
121,
26,
62,
157,
49,
69,
132,
57,
189
]
},
"value": "iiaBZK35vwjVQGhRISOMdEZVH6nGjOR5Gj6dMUWEOb0="
}
},
{
"type": "liveUntilLedgerSeq",
"value": "52938351"
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryCreated]",
"nodes": [
{
"type": "created",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[contractData]",
"nodes": [
{
"type": "contractData",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "contract",
"value": "[scAddressTypeContract]",
"nodes": [
{
"type": "contractId",
"value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
}
]
},
{
"type": "key",
"value": "[scvLedgerKeyContractInstance]"
},
{
"type": "durability",
"value": {
"name": "persistent",
"value": 1
}
},
{
"type": "val",
"value": "[scvContractInstance]",
"nodes": [
{
"type": "instance",
"nodes": [
{
"type": "executable",
"value": "[contractExecutableStellarAsset]"
},
{
"type": "storage",
"value": "Array[3]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "key",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "METADATA"
}
]
},
{
"type": "val",
"value": "[scvMap]",
"nodes": [
{
"type": "map",
"value": {
"decimal": 7,
"name": "BTFo:GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
"symbol": "BTFo"
}
}
]
}
]
},
{
"type": "[1]",
"nodes": [
{
"type": "key",
"value": "[scvVec]",
"nodes": [
{
"type": "vec",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "Admin"
}
]
}
]
}
]
},
{
"type": "val",
"value": "[scvAddress]",
"nodes": [
{
"type": "address",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
]
}
]
},
{
"type": "[2]",
"nodes": [
{
"type": "key",
"value": "[scvVec]",
"nodes": [
{
"type": "vec",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "AssetInfo"
}
]
}
]
}
]
},
{
"type": "val",
"value": "[scvVec]",
"nodes": [
{
"type": "vec",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "AlphaNum4"
}
]
},
{
"type": "[1]",
"value": "[scvMap]",
"nodes": [
{
"type": "map",
"value": {
"asset_code": "BTFo",
"issuer": {
"type": "Buffer",
"data": [
182,
128,
209,
222,
112,
59,
53,
230,
230,
165,
9,
245,
148,
121,
74,
164,
170,
41,
215,
207,
187,
67,
206,
106,
188,
188,
213,
168,
57,
228,
203,
162
]
}
}
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
}
]
},
{
"type": "txChangesAfter",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "balance",
"value": "9773523570"
},
{
"type": "seqNum",
"value": "163399020004245540"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "11"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
100,
101,
118,
46,
98,
108,
111,
99,
107,
116,
105,
109,
101,
102,
105,
110,
97,
110,
99,
105,
97,
108,
46,
99,
111,
109
]
},
"value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50864752"
},
{
"type": "seqTime",
"value": "1710893324"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "balance",
"value": "9773527703"
},
{
"type": "seqNum",
"value": "163399020004245540"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "11"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
100,
101,
118,
46,
98,
108,
111,
99,
107,
116,
105,
109,
101,
102,
105,
110,
97,
110,
99,
105,
97,
108,
46,
99,
111,
109
]
},
"value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50864752"
},
{
"type": "seqTime",
"value": "1710893324"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
},
{
"type": "sorobanMeta",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "events",
"value": "Array[0]",
"nodes": []
},
{
"type": "returnValue",
"value": "[scvAddress]",
"nodes": [
{
"type": "address",
"value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
}
]
},
{
"type": "diagnosticEvents",
"value": "Array[0]",
"nodes": []
}
]
}
]
}
]
}
]
}
}
/portfolio
Get the comprehensive information about the assets/ tokens owned by a user, including their name, balance, symbol, address, and their equivalent USD price.
GET
https://api.expand.network/chain/portfolio
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
address* | String | Public addess of the user. |
availableOnly | Boolean | By default, false. If true, tokens with balance > 0 will be listed. |
https://api.expand.network/chain/portfolio/?address=GAJ4BSGJE6UQHZAZ5U5IUOABPDCYPKPS3RFS2NVNGFGFXGVQDLBQJW2P&chainId=1500&availableOnly=true
{
"status": 200,
"msg": "success",
"data": {
"native": "165551542",
"assets": [
{
"assetType": "credit_alphanum4",
"balance": "4310224067",
"assetCode": "SHX",
"issuer": "GDSTRSHXHGJ7ZIVRBXEYE5Q74XUVCUSEKEBR7UCHEUUEK72N7I7KJ6JH"
}
]
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://historicallp.api.expand.network/chain/getusertransactions
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
address* | String | The public address of the user. |
pageToken | String | A string ID that points to a specific location in a collection of responses, present at the end of the response. |
sortOrder | String | The transaction sorting order. asc or desc. By default, desc. |
https://historicallp.api.expand.network/chain/getusertransactions?chainId=1500&address=GCU7LJ5S6U3YCTSLLZNMRHJBSXVI6O5WPQIJ2ESLYTYIUJ7WMSXNYERD
{
"status": 200,
"msg": "success",
"transactions": {
"hash": "3ee7edbe77d9ca096adf05feab86cc3b2f0a355088240f3eeb06cbfc24a491a7",
"transactionStatus": true,
"blockNumber": "50864752",
"timestamp": "1710893324000",
"from": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
"to": null,
"value": null,
"transactionFees": "2129796",
"gas": "2454018",
"gasPrice": "100",
"input": null,
"nonce": 163399020004245540,
"network": null,
"transactionEnvelop": [
{
"type": "TransactionEnvelope",
"value": "[envelopeTypeTx]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "tx",
"nodes": [
{
"type": "sourceAccount",
"value": "[keyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "fee",
"value": "2454018"
},
{
"type": "seqNum",
"value": "163399020004245540"
},
{
"type": "cond",
"value": "[precondNone]"
},
{
"type": "memo",
"value": "[memoNone]"
},
{
"type": "operations",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "sourceAccount",
"value": null
},
{
"type": "body",
"value": "[invokeHostFunction]",
"nodes": [
{
"type": "invokeHostFunctionOp",
"nodes": [
{
"type": "hostFunction",
"value": "[hostFunctionTypeCreateContract]",
"nodes": [
{
"type": "createContract",
"nodes": [
{
"type": "contractIdPreimage",
"value": "[contractIdPreimageFromAsset]",
"nodes": [
{
"type": "fromAsset",
"value": "[assetTypeCreditAlphanum4]",
"nodes": [
{
"type": "alphaNum4",
"nodes": [
{
"type": "assetCode",
"value": "BTFo"
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
}
]
}
]
}
]
},
{
"type": "executable",
"value": "[contractExecutableStellarAsset]"
}
]
}
]
},
{
"type": "auth",
"value": "Array[0]",
"nodes": []
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "sorobanData",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "resources",
"nodes": [
{
"type": "footprint",
"nodes": [
{
"type": "readOnly",
"value": "Array[0]",
"nodes": []
},
{
"type": "readWrite",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[contractData]",
"nodes": [
{
"type": "contractData",
"nodes": [
{
"type": "contract",
"value": "[scAddressTypeContract]",
"nodes": [
{
"type": "contractId",
"value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
}
]
},
{
"type": "key",
"value": "[scvLedgerKeyContractInstance]"
},
{
"type": "durability",
"value": {
"name": "persistent",
"value": 1
}
}
]
}
]
}
]
}
]
},
{
"type": "instructions",
"value": "3114111"
},
{
"type": "readBytes",
"value": "0"
},
{
"type": "writeBytes",
"value": "476"
}
]
},
{
"type": "resourceFee",
"value": "2133829"
}
]
}
]
}
]
},
{
"type": "signatures",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "hint",
"value": {
"type": "code",
"value": "G______________________________________________Z4TF2____"
}
},
{
"type": "signature",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
141,
201,
205,
145,
217,
190,
184,
119,
165,
253,
195,
24,
53,
138,
0,
184,
39,
32,
212,
17,
10,
55,
181,
149,
219,
82,
178,
151,
26,
160,
120,
31,
189,
149,
135,
125,
217,
107,
174,
150,
89,
227,
15,
18,
215,
169,
144,
23,
171,
26,
105,
94,
177,
244,
63,
17,
144,
91,
10,
102,
236,
117,
114,
2
]
},
"value": "jcnNkdm+uHel/cMYNYoAuCcg1BEKN7WV21KylxqgeB+9lYd92WuullnjDxLXqZAXqxppXrH0PxGQWwpm7HVyAg=="
}
}
]
}
]
}
]
}
]
}
],
"transactionResult": [
{
"type": "TransactionResult",
"nodes": [
{
"type": "feeCharged",
"value": "2129796"
},
{
"type": "result",
"value": "[txSuccess]",
"nodes": [
{
"type": "results",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[opInner]",
"nodes": [
{
"type": "tr",
"value": "[invokeHostFunction]",
"nodes": [
{
"type": "invokeHostFunctionResult",
"value": "[invokeHostFunctionSuccess]",
"nodes": [
{
"type": "success",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
192,
151,
213,
158,
159,
153,
7,
23,
199,
248,
157,
2,
192,
179,
161,
181,
23,
27,
107,
231,
186,
1,
89,
3,
36,
242,
34,
236,
49,
130,
143,
121
]
},
"value": "wJfVnp+ZBxfH+J0CwLOhtRcba+e6AVkDJPIi7DGCj3k="
}
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
],
"transactionMeta": [
{
"type": "TransactionMeta",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "txChangesBefore",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "balance",
"value": "9773523570"
},
{
"type": "seqNum",
"value": "163399020004245539"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "11"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
100,
101,
118,
46,
98,
108,
111,
99,
107,
116,
105,
109,
101,
102,
105,
110,
97,
110,
99,
105,
97,
108,
46,
99,
111,
109
]
},
"value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50864748"
},
{
"type": "seqTime",
"value": "1710893300"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "balance",
"value": "9773523570"
},
{
"type": "seqNum",
"value": "163399020004245540"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "11"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
100,
101,
118,
46,
98,
108,
111,
99,
107,
116,
105,
109,
101,
102,
105,
110,
97,
110,
99,
105,
97,
108,
46,
99,
111,
109
]
},
"value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50864752"
},
{
"type": "seqTime",
"value": "1710893324"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
},
{
"type": "operations",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "changes",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryCreated]",
"nodes": [
{
"type": "created",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[ttl]",
"nodes": [
{
"type": "ttl",
"nodes": [
{
"type": "keyHash",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
138,
38,
129,
100,
173,
249,
191,
8,
213,
64,
104,
81,
33,
35,
140,
116,
70,
85,
31,
169,
198,
140,
228,
121,
26,
62,
157,
49,
69,
132,
57,
189
]
},
"value": "iiaBZK35vwjVQGhRISOMdEZVH6nGjOR5Gj6dMUWEOb0="
}
},
{
"type": "liveUntilLedgerSeq",
"value": "52938351"
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryCreated]",
"nodes": [
{
"type": "created",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[contractData]",
"nodes": [
{
"type": "contractData",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "contract",
"value": "[scAddressTypeContract]",
"nodes": [
{
"type": "contractId",
"value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
}
]
},
{
"type": "key",
"value": "[scvLedgerKeyContractInstance]"
},
{
"type": "durability",
"value": {
"name": "persistent",
"value": 1
}
},
{
"type": "val",
"value": "[scvContractInstance]",
"nodes": [
{
"type": "instance",
"nodes": [
{
"type": "executable",
"value": "[contractExecutableStellarAsset]"
},
{
"type": "storage",
"value": "Array[3]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "key",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "METADATA"
}
]
},
{
"type": "val",
"value": "[scvMap]",
"nodes": [
{
"type": "map",
"value": {
"decimal": 7,
"name": "BTFo:GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5",
"symbol": "BTFo"
}
}
]
}
]
},
{
"type": "[1]",
"nodes": [
{
"type": "key",
"value": "[scvVec]",
"nodes": [
{
"type": "vec",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "Admin"
}
]
}
]
}
]
},
{
"type": "val",
"value": "[scvAddress]",
"nodes": [
{
"type": "address",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
]
}
]
},
{
"type": "[2]",
"nodes": [
{
"type": "key",
"value": "[scvVec]",
"nodes": [
{
"type": "vec",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "AssetInfo"
}
]
}
]
}
]
},
{
"type": "val",
"value": "[scvVec]",
"nodes": [
{
"type": "vec",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "AlphaNum4"
}
]
},
{
"type": "[1]",
"value": "[scvMap]",
"nodes": [
{
"type": "map",
"value": {
"asset_code": "BTFo",
"issuer": {
"type": "Buffer",
"data": [
182,
128,
209,
222,
112,
59,
53,
230,
230,
165,
9,
245,
148,
121,
74,
164,
170,
41,
215,
207,
187,
67,
206,
106,
188,
188,
213,
168,
57,
228,
203,
162
]
}
}
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
}
]
},
{
"type": "txChangesAfter",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "balance",
"value": "9773523570"
},
{
"type": "seqNum",
"value": "163399020004245540"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "11"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
100,
101,
118,
46,
98,
108,
111,
99,
107,
116,
105,
109,
101,
102,
105,
110,
97,
110,
99,
105,
97,
108,
46,
99,
111,
109
]
},
"value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50864752"
},
{
"type": "seqTime",
"value": "1710893324"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "50864752"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GC3IBUO6OA5TLZXGUUE7LFDZJKSKUKOXZ65UHTTKXS6NLKBZ4TF2EES5"
}
}
]
},
{
"type": "balance",
"value": "9773527703"
},
{
"type": "seqNum",
"value": "163399020004245540"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "11"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
100,
101,
118,
46,
98,
108,
111,
99,
107,
116,
105,
109,
101,
102,
105,
110,
97,
110,
99,
105,
97,
108,
46,
99,
111,
109
]
},
"value": "ZGV2LmJsb2NrdGltZWZpbmFuY2lhbC5jb20="
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "50864752"
},
{
"type": "seqTime",
"value": "1710893324"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
},
{
"type": "sorobanMeta",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "events",
"value": "Array[0]",
"nodes": []
},
{
"type": "returnValue",
"value": "[scvAddress]",
"nodes": [
{
"type": "address",
"value": "CAIEAMU2ZNSEYRKFKHUUO73CKGXPXPB6T5EGMECUTIFKRXBT2OQP24S2"
}
]
},
{
"type": "diagnosticEvents",
"value": "Array[0]",
"nodes": []
}
]
}
]
}
]
}
]
},
"nextPageToken": "212791796743290880"
}
/getevents
Get the list of events emitted by a given ledger range, within a maximum 10 hours from latest ledgers.
GET
https://api.expand.network/chain/getevents
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
startBlock | String | Sequence number of the ledger. By default, the latest ledger. |
pageToken | String | A string ID that points to a specific location in a collection of responses, present at the end of the response. |
contracts | String | Comma separated values of contract IDs to query for events. |
topics1 | String | Topic this event was emitted with. |
topics2 | String | Topic this event was emitted with. |
topics3 | String | Topic this event was emitted with. |
topics4 | String | Topic this event was emitted with. |
topics5 | String | Topic this event was emitted with. |
type | String | A comma separated list of event types (system, contract, or diagnostic) used to filter events. If omitted, all event types are included. |
https://api.expand.network/chain/getevents/?chainId=1500&startBlock=51101417
{
"status": 200,
"msg": "success",
"data": {
"events": [
{
"type": "diagnostic",
"ledger": 52309741,
"ledgerClosedAt": 1719473442000,
"id": "0224668626857975808-0000000000",
"topic": [
[
{
"type": "ScVal",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "fn_call"
}
]
}
],
[
{
"type": "ScVal",
"value": "[scvBytes]",
"nodes": [
{
"type": "bytes",
"value": "Array[32]",
"nodes": [
{
"type": "[0]",
"value": "221"
},
{
"type": "[1]",
"value": "29"
},
{
"type": "[2]",
"value": "192"
},
{
"type": "[3]",
"value": "122"
},
{
"type": "[4]",
"value": "253"
},
{
"type": "[5]",
"value": "128"
},
{
"type": "[6]",
"value": "2"
},
{
"type": "[7]",
"value": "242"
},
{
"type": "[8]",
"value": "106"
},
{
"type": "[9]",
"value": "227"
},
{
"type": "[10]",
"value": "29"
},
{
"type": "[11]",
"value": "189"
},
{
"type": "[12]",
"value": "204"
},
{
"type": "[13]",
"value": "208"
},
{
"type": "[14]",
"value": "188"
},
{
"type": "[15]",
"value": "125"
},
{
"type": "[16]",
"value": "23"
},
{
"type": "[17]",
"value": "180"
},
{
"type": "[18]",
"value": "13"
},
{
"type": "[19]",
"value": "109"
},
{
"type": "[20]",
"value": "86"
},
{
"type": "[21]",
"value": "236"
},
{
"type": "[22]",
"value": "107"
},
{
"type": "[23]",
"value": "255"
},
{
"type": "[24]",
"value": "182"
},
{
"type": "[25]",
"value": "175"
},
{
"type": "[26]",
"value": "90"
},
{
"type": "[27]",
"value": "251"
},
{
"type": "[28]",
"value": "53"
},
{
"type": "[29]",
"value": "79"
},
{
"type": "[30]",
"value": "175"
},
{
"type": "[31]",
"value": "235"
}
]
}
]
}
],
[
{
"type": "ScVal",
"value": "[scvSymbol]",
"nodes": [
{
"type": "sym",
"value": "add_prices"
}
]
}
]
],
"value": [
{
"type": "ScVal",
"value": "[scvVec]",
"nodes": [
{
"type": "vec",
"value": "Array[4]",
"nodes": [
{
"type": "[0]",
"value": "[scvMap]",
"nodes": [
{
"asset": [
"Other",
"EURC"
],
"asset_u32": 8,
"price": "83200000000000000",
"source": 0,
"timestamp": "1719473400"
}
]
},
{
"type": "[1]",
"value": "[scvMap]",
"nodes": [
{
"asset": [
"Other",
"IDR"
],
"asset_u32": 33,
"price": "1474740500000000000000",
"source": 0,
"timestamp": "1719473400"
}
]
},
{
"type": "[2]",
"value": "[scvMap]",
"nodes": [
{
"asset": [
"Other",
"ARS"
],
"asset_u32": 31,
"price": "81806632600000000000",
"source": 0,
"timestamp": "1719473400"
}
]
},
{
"type": "[3]",
"value": "[scvMap]",
"nodes": [
{
"asset": [
"Other",
"NGN"
],
"asset_u32": 32,
"price": "137763976000000000000",
"source": 0,
"timestamp": "1719473400"
}
]
}
]
}
]
}
],
"inSuccessfulContractCall": true,
"contract": "",
"transactionHash": "f6cb1d2c9e6e2a0e2c3370aa678957de39621e2573e7f760d437a6ecbd26ce08"
}
]
}
}
/getlatestledger
Get details for the latest block (ledger).
GET
https://api.expand.network/chain/getlatestledger
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
https://api.expand.network/chain/getlatestledger?chainId=1500
{
"status": 200,
"msg": "success",
"data": {
"difficulty": null,
"gasLimit": null,
"gasUsed": null,
"hash": "2f93b5fefbe6bb223a9bd1575d80a93238cbe1bbcc8df48be91f570f750f06bd",
"miner": null,
"nonce": null,
"number": 52310121,
"parentHash": "4d55c9f60fa64de463d3530e4348ad6d81c3c6cb5a00e7e6ea73612c60e9a081",
"size": null,
"timestamp": 1719475633,
"totalDifficulty": null,
"transactions": [
{
"hash": "3d00f400fbf255d49231991da34f9d8833b3d68d5acb9e223134c457ec9ed29f",
"transactionStatus": true,
"blockNumber": "52310121",
"timestamp": "1719475633000",
"from": "GAGX2SFPL6PGA5LEIILPEJMNBXHBKVUB2O3QHKWQCD4VQ7FMOHWEBDGS",
"to": null,
"value": null,
"transactionFees": "100",
"gas": "250005",
"gasPrice": "100",
"input": null,
"nonce": 218580222952354850,
"network": null,
"transactionEnvelop": [
{
"type": "TransactionEnvelope",
"value": "[envelopeTypeTx]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "tx",
"nodes": [
{
"type": "sourceAccount",
"value": "[keyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GAGX2SFPL6PGA5LEIILPEJMNBXHBKVUB2O3QHKWQCD4VQ7FMOHWEBDGS"
}
}
]
},
{
"type": "fee",
"value": "250005"
},
{
"type": "seqNum",
"value": "218580222952354861"
},
{
"type": "cond",
"value": "[precondTime]",
"nodes": [
{
"type": "timeBounds",
"nodes": [
{
"type": "minTime",
"value": "0"
},
{
"type": "maxTime",
"value": "1719475657"
}
]
}
]
},
{
"type": "memo",
"value": "[memoNone]"
},
{
"type": "operations",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "sourceAccount",
"value": "[keyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
}
}
]
},
{
"type": "body",
"value": "[manageBuyOffer]",
"nodes": [
{
"type": "manageBuyOfferOp",
"nodes": [
{
"type": "selling",
"value": "[assetTypeNative]"
},
{
"type": "buying",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"GUARDIAN "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
}
}
]
}
]
}
]
},
{
"type": "buyAmount",
"value": "1472821238256"
},
{
"type": "price",
"nodes": [
{
"type": "n",
"value": "1371"
},
{
"type": "d",
"value": "1999999"
}
]
},
{
"type": "offerId",
"value": "1571218972"
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
},
{
"type": "signatures",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "hint",
"value": {
"type": "code",
"value": "G______________________________________________MGSWN____"
}
},
{
"type": "signature",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
75,
136,
113,
98,
217,
226,
235,
255,
135,
229,
178,
163,
221,
130,
186,
237,
67,
176,
106,
246,
53,
104,
37,
117,
53,
253,
62,
63,
235,
30,
141,
172,
200,
84,
27,
237,
111,
221,
204,
168,
159,
66,
55,
94,
32,
117,
206,
57,
219,
107,
84,
79,
78,
44,
6,
243,
166,
84,
105,
196,
45,
95,
76,
14
]
},
"value": "S4hxYtni6/+H5bKj3YK67UOwavY1aCV1Nf0+P+sejazIVBvtb93MqJ9CN14gdc4522tUT04sBvOmVGnELV9MDg=="
}
}
]
},
{
"type": "[1]",
"nodes": [
{
"type": "hint",
"value": {
"type": "code",
"value": "G______________________________________________MOHWE____"
}
},
{
"type": "signature",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
46,
178,
217,
217,
225,
214,
92,
21,
68,
170,
0,
160,
157,
123,
84,
158,
209,
16,
157,
25,
251,
0,
218,
50,
205,
6,
37,
237,
101,
27,
15,
53,
184,
155,
29,
15,
59,
87,
221,
211,
245,
128,
163,
95,
165,
230,
81,
169,
240,
65,
82,
72,
249,
187,
136,
127,
102,
112,
93,
47,
19,
214,
175,
12
]
},
"value": "LrLZ2eHWXBVEqgCgnXtUntEQnRn7ANoyzQYl7WUbDzW4mx0PO1fd0/WAo1+l5lGp8EFSSPm7iH9mcF0vE9avDA=="
}
}
]
}
]
}
]
}
]
}
],
"transactionResult": [
{
"type": "TransactionResult",
"nodes": [
{
"type": "feeCharged",
"value": "100"
},
{
"type": "result",
"value": "[txSuccess]",
"nodes": [
{
"type": "results",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"value": "[opInner]",
"nodes": [
{
"type": "tr",
"value": "[manageBuyOffer]",
"nodes": [
{
"type": "manageBuyOfferResult",
"value": "[manageBuyOfferSuccess]",
"nodes": [
{
"type": "success",
"nodes": [
{
"type": "offersClaimed",
"value": "Array[0]",
"nodes": []
},
{
"type": "offer",
"value": "[manageOfferUpdated]",
"nodes": [
{
"type": "offer",
"nodes": [
{
"type": "sellerId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
}
}
]
},
{
"type": "offerId",
"value": "1571218972"
},
{
"type": "selling",
"value": "[assetTypeNative]"
},
{
"type": "buying",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"GUARDIAN "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
}
}
]
}
]
}
]
},
{
"type": "amount",
"value": {
"type": "amount",
"value": {
"parsed": "100.9619463",
"raw": "1009619463"
}
}
},
{
"type": "price",
"nodes": [
{
"type": "n",
"value": "1999999"
},
{
"type": "d",
"value": "1371"
}
]
},
{
"type": "flags",
"value": "0"
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
],
"transactionMeta": [
{
"type": "TransactionMeta",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "txChangesBefore",
"value": "Array[2]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "52310121"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GAGX2SFPL6PGA5LEIILPEJMNBXHBKVUB2O3QHKWQCD4VQ7FMOHWEBDGS"
}
}
]
},
{
"type": "balance",
"value": "29707678"
},
{
"type": "seqNum",
"value": "218580222952354860"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "0"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": []
},
"value": ""
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "52309824"
},
{
"type": "seqTime",
"value": "1719473923"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "52310121"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GAGX2SFPL6PGA5LEIILPEJMNBXHBKVUB2O3QHKWQCD4VQ7FMOHWEBDGS"
}
}
]
},
{
"type": "balance",
"value": "29707678"
},
{
"type": "seqNum",
"value": "218580222952354861"
},
{
"type": "numSubEntries",
"value": "0"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "0"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": []
},
"value": ""
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "0"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "52310121"
},
{
"type": "seqTime",
"value": "1719475633"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
},
{
"type": "operations",
"value": "Array[1]",
"nodes": [
{
"type": "[0]",
"nodes": [
{
"type": "changes",
"value": "Array[6]",
"nodes": [
{
"type": "[0]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "52310113"
},
{
"type": "data",
"value": "[offer]",
"nodes": [
{
"type": "offer",
"nodes": [
{
"type": "sellerId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
}
}
]
},
{
"type": "offerId",
"value": "1571218972"
},
{
"type": "selling",
"value": "[assetTypeNative]"
},
{
"type": "buying",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"GUARDIAN "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
}
}
]
}
]
}
]
},
{
"type": "amount",
"value": {
"type": "amount",
"value": {
"parsed": "100.9619463",
"raw": "1009619463"
}
}
},
{
"type": "price",
"nodes": [
{
"type": "n",
"value": "1449"
},
{
"type": "d",
"value": "1"
}
]
},
{
"type": "flags",
"value": "0"
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[1]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "52310121"
},
{
"type": "data",
"value": "[offer]",
"nodes": [
{
"type": "offer",
"nodes": [
{
"type": "sellerId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
}
}
]
},
{
"type": "offerId",
"value": "1571218972"
},
{
"type": "selling",
"value": "[assetTypeNative]"
},
{
"type": "buying",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"GUARDIAN "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
}
}
]
}
]
}
]
},
{
"type": "amount",
"value": {
"type": "amount",
"value": {
"parsed": "100.9619463",
"raw": "1009619463"
}
}
},
{
"type": "price",
"nodes": [
{
"type": "n",
"value": "1999999"
},
{
"type": "d",
"value": "1371"
}
]
},
{
"type": "flags",
"value": "0"
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[2]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "52310113"
},
{
"type": "data",
"value": "[trustline]",
"nodes": [
{
"type": "trustLine",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
}
}
]
},
{
"type": "asset",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"GUARDIAN "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
}
}
]
}
]
}
]
},
{
"type": "balance",
"value": "1993"
},
{
"type": "limit",
"value": {
"type": "amount",
"value": {
"parsed": "922337203685.4775807",
"raw": "9223372036854775807"
}
}
},
{
"type": "flags",
"value": "1"
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "39590212968484990"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[3]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "52310121"
},
{
"type": "data",
"value": "[trustline]",
"nodes": [
{
"type": "trustLine",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
}
}
]
},
{
"type": "asset",
"value": "[assetTypeCreditAlphanum12]",
"nodes": [
{
"type": "alphaNum12",
"nodes": [
{
"type": "assetCode",
"value":"GUARDIAN "
},
{
"type": "issuer",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GB2Z42DRDOLLRLH62JFM3EC35DHD2KPETP6KKMX7EYKLFZEUXGGXG7L6"
}
}
]
}
]
}
]
},
{
"type": "balance",
"value": "1993"
},
{
"type": "limit",
"value": {
"type": "amount",
"value": {
"parsed": "922337203685.4775807",
"raw": "9223372036854775807"
}
}
},
{
"type": "flags",
"value": "1"
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "39590222851120433"
},
{
"type": "selling",
"value": "0"
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[4]",
"value": "[ledgerEntryState]",
"nodes": [
{
"type": "state",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "52310120"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
}
}
]
},
{
"type": "balance",
"value": "221649096276"
},
{
"type": "seqNum",
"value": "218420261190369432"
},
{
"type": "numSubEntries",
"value": "592"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "0"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": []
},
"value": ""
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "94097561989"
},
{
"type": "selling",
"value": "182855862673"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "52306944"
},
{
"type": "seqTime",
"value": "1719457483"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
},
{
"type": "[5]",
"value": "[ledgerEntryUpdated]",
"nodes": [
{
"type": "updated",
"nodes": [
{
"type": "lastModifiedLedgerSeq",
"value": "52310121"
},
{
"type": "data",
"value": "[account]",
"nodes": [
{
"type": "account",
"nodes": [
{
"type": "accountId",
"value": "[publicKeyTypeEd25519]",
"nodes": [
{
"type": "ed25519",
"value": {
"type": "code",
"value": "GBZJPIK67VBXERCP6JUX2NV7M3QWH4RR3S5DPIVRDBQHPRQMGSWNRLT5"
}
}
]
},
{
"type": "balance",
"value": "221649096276"
},
{
"type": "seqNum",
"value": "218420261190369432"
},
{
"type": "numSubEntries",
"value": "592"
},
{
"type": "inflationDest",
"value": null
},
{
"type": "flags",
"value": "0"
},
{
"type": "homeDomain",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": []
},
"value": ""
}
},
{
"type": "thresholds",
"value": {
"type": "code",
"raw": {
"type": "Buffer",
"data": [
1,
0,
0,
0
]
},
"value": "AQAAAA=="
}
},
{
"type": "signers",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v1",
"nodes": [
{
"type": "liabilities",
"nodes": [
{
"type": "buying",
"value": "94097561989"
},
{
"type": "selling",
"value": "182855862673"
}
]
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v2",
"nodes": [
{
"type": "numSponsored",
"value": "0"
},
{
"type": "numSponsoring",
"value": "0"
},
{
"type": "signerSponsoringIDs",
"value": "Array[0]",
"nodes": []
},
{
"type": "ext",
"value": "[undefined]",
"nodes": [
{
"type": "v3",
"nodes": [
{
"type": "ext",
"value": "[undefined]"
},
{
"type": "seqLedger",
"value": "52306944"
},
{
"type": "seqTime",
"value": "1719457483"
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"type": "ext",
"value": "[undefined]"
}
]
}
]
}
]
}
]
}
]
},
{
"type": "txChangesAfter",
"value": "Array[0]",
"nodes": []
},
{
"type": "sorobanMeta",
"value": null
}
]
}
]
}
]
}
],
"transactionsRoot": null,
"uncles": null
}
}
/sendtransaction
Submit a signed transaction to Stellar for processing.
POST
https://api.expand.network/chain/sendtransaction
Request Body
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
rawTransaction* | String | The signed transaction to broadcast for inclusion in a ledger, serialized as a base64 string. |
{
"rawTransaction": "AAAAAgAAAADK19wCgQBrHYbni7IEXqbuH39ZZ6+CyjQd0pgMYs1LFQAAAGQADYdgAAAABgAAAAEAAAAAAAAAAAAAAABmDUAMAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmRUZXN0AAAAAAAAlYebzd+2+XWQwUfqzG15Geiys7ZyG3jfrYEVwKQYQxIAAAAAHc1lAAAAAAAAAAABYs1LFQAAAEDT1KH8ZqJvA0M0Ncg6RsekzR5BceG41DUDgR/f8xgZk16vEOVY2BZ2Eq+FmWTXdXRP2LX/uLSKh5xxCb4v3g8O",
"chainId": "1500"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"transactionHash": "3a6208b4c7da5173a5cbe5ff1f71b3c941573f0f6f68482ba3fc81fc071ac1aa"
}
}
/createaccount
Initiates a transaction to fund a newly created account using the public key as the account ID.
POST
https://api.expand.network/chain/createaccount
Request body
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
from* | String | Public address of the sender who funds the account. |
to* | String | Public address of the recipient who will get funded. |
amount* | String | Amount of asset to fund. |
{
"chainId": "1500",
"from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
"to": "GDILQD3VDOBECITMR5LVVFLNYQIDXFSLUADNIUUYCYGTX524VKPM2CMC",
"amount": "5000000"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1500",
"from": "GARNHXH36IUZE4F5MON5XBQX37OGVFGCOPOPN7CPQL3TP7VX2XI35QUJ",
"gas": "100",
"data": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAAAGQDC8UiAAAACAAAAAEAAAAAAAAAAAAAAABmfTp1AAAAAAAAAAEAAAAAAAAAAAAAAADQuA91G4JBImyPV1qVbcQQO5ZLoAbUUpgWDTv3XKqezQAAAAAATEtAAAAAAAAAAAA="
}
}
/simulatetransaction
Submit a trial contract invocation to simulate how it would be executed by the network.
POST
https://api.expand.network/chain/simulatetransaction
Request Body
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
chainId* | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
rawTransaction* | String | A signed Stellar transaction, serialized as a base64 string. |
{
"chainId": "1500",
"rawTransaction": "AAAAAgAAAAAi09z78imScL1jm9uGF9/capTCc9z2/E+C9zf+t9XRvgAK6+UDC8UiAAAAAwAAAAEAAAAAAAAAAAAAAABmD/WzAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAJaW5jcmVtZW50AAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAHCxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAABADpZfQAAAuQAAACEAAAAAAAK64EAAAABt9XRvgAAAEA/PHP5Z5ZmpQTYf6UnbQPTBaIbhWlCznTGbt9G7yYQQSSzOLclrxNiv/+Oj+UaVO4T3mhFC5+VC/uSotgIJykA"
}
{
"status": 200,
"msg": "success",
"data": {
"result": {
"transactionData": "AAAAAAAAAAEAAAAHCxRSx/lCsIebq3ncX/0VB3zL1ZCf+AY3FmCgx7Q9iO0AAAABAAAABgAAAAFV3d0a2VhBZ+54/g6tRMfgt+WajUevdHo3A8wtDuWS+QAAABQAAAABADpyuAAAAwAAAACEAAAAAAAAxO0=",
"minResourceFee": "50413",
"events": [
"AAAAAQAAAAAAAAAAAAAAAgAAAAAAAAADAAAADwAAAAdmbl9jYWxsAAAAAA0AAAAgVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAAPAAAACWluY3JlbWVudAAAAAAAAAE=",
"AAAAAQAAAAAAAAABVd3dGtlYQWfueP4OrUTH4Lflmo1Hr3R6NwPMLQ7lkvkAAAACAAAAAAAAAAIAAAAPAAAACWZuX3JldHVybgAAAAAAAA8AAAAJaW5jcmVtZW50AAAAAAAAAwAAAAI="
],
"results": [
{
"auth": [],
"xdr": "AAAAAwAAAAI="
}
],
"cost": {
"cpuInsns": "830456",
"memBytes": "1223985"
},
"latestLedger": 51103937
}
}
}
/decodetransaction
Get the decoded transaction(sender, recipient, gas limit, method signature, and more) for the provided raw transaction.
POST
https://api.expand.network/chain/decodetransaction
Request Body
Name | Type | Description |
---|---|---|
chainId* | String | Refer to the Chain ID page for details. By default, Ethereum. |
chainSymbol | String | Refer to the Chain ID page for details. |
rawTransaction* | String | A signed Stellar transaction, serialized as a base64 string. |
{
"chainId": "1500",
"rawTransaction": "AAAAAgAAAABMmM4wvUEdIHJlj742UZIjX7WP6OqgK3x/pPnbTCXxcgAAAGQAAaHuAAAACwAAAAEAAAAAAAAAAAAAAABl+DZxAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmREb2xsYXIAAAAAm/7hgKNd+xNhcPZfUG8loszSbri9XAJezYDtga5pPN8AAAAAIC+/AAAAAAAAAAAA"
}
{
"status": 200,
"msg": "success",
"data": {
"network": "1500",
"transactionEnvelope": "AAAAAgAAAABMmM4wvUEdIHJlj742UZIjX7WP6OqgK3x/pPnbTCXxcgAAAGQAAaHuAAAACwAAAAEAAAAAAAAAAAAAAABl+DZxAAAAAAAAAAEAAAAAAAAABgAAAAJFeHBhbmREb2xsYXIAAAAAm/7hgKNd+xNhcPZfUG8loszSbri9XAJezYDtga5pPN8AAAAAIC+/AAAAAAAAAAAA",
"transactionHash": "8d6f0c658e59962c023da0f4b6a7e6973ce377d161a2134281bb17d410d2bf90",
"transactionFee": "100",
"source": "GBGJRTRQXVAR2IDSMWH34NSRSIRV7NMP5DVKAK34P6SPTW2MEXYXFMCO",
"sequence": "459518550999051",
"operations": [
{
"type": "changeTrust",
"line": {
"code": "ExpandDollar",
"issuer": "GCN75YMAUNO7WE3BOD3F6UDPEWRMZUTOXC6VYAS6ZWAO3ANONE6N6LHT"
},
"limit": "54.0000000"
}
],
"signatures": []
}
}
Last updated