TON
/getbalance
Get the balance or number of the given token in the requested public address.
GET
https://api.expand.network/chain/getbalance
Query Parameters
https://api.expand.network/chain/getbalance/?address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R&chainId=1100
{
"status": 200,
"msg": "success",
"data": {
"balance": "496234820"
}
}
/getblock
Get details of a block.
GET
https://api.expand.network/chain/getblock
Query Parameters
https://api.expand.network/chain/getblock?blockNumber=36065243&chainId=1100
{
"status": 200,
"msg": "success",
"data": {
"shards": [
{
"workchain": -1,
"seqno": 36065243,
"shard": "-9223372036854775808",
"rootHash": "I8mULmKFPQ4aZE8jb7aAS2D/ZkvOUJ81CC836DOs92I=",
"fileHash": "Dw7g/1xxAeobH//sKtlKXaWN8kLSDeF1oJdts57ISqg=",
"transactions": [
{
"account": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF",
"lt": "44595612000001",
"hex": "b540c4f87280725f4da43113598d632064e47e0520b3f466d4aa8a7e50dbd426",
"transactionHash": "tUDE+HKAcl9NpDETWY1jIGTkfgUgs/Rm1KqKflDb1CY="
},
{
"account": "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF",
"lt": "44595612000002",
"hex": "ab62f61a7cf841172087a7b0c0d30ccf97145dd62f04f622beebed70f4343fa6",
"transactionHash": "q2L2Gnz4QRcgh6ewwNMMz5cUXdYvBPYivuvtcPQ0P6Y="
},
{
"account": "Ef9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVbxn",
"lt": "44595612000003",
"hex": "67bb812a77a49376f930788915fb4d8d383f8fe217507684e753f1f1b4c50644",
"transactionHash": "Z7uBKnekk3b5MHiJFftNjTg/j+IXUHaE51Px8bTFBkQ="
}
]
}
]
}
}
/getgasprice
Get the current gas price from the network.
GET
https://api.expand.network/chain/getgasprice
Query Parameters
https://api.expand.network/chain/getgasprice?chainId=1100
{
"status": 200,
"msg": "success",
"data": {
"gasPrice": "3308000"
}
}
/gettransaction
Get details of a transaction.
GET
https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=1100&transactionHash=whPbUe52HoCgrmkd9n1DpEmPC00rt5IqMb0NxdsjJec&address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R
{
"status": 200,
"msg": "success",
"data": {
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU"
},
"utime": 1707378056,
"data": "te6cckECBwEAAaQAA7VzGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvAAAoc6sapEOtKW9AAdZAcbY46vM/ezW4lAeTLXpAsgL2TzT+x1uW2wAAKHIDIuADZcSFiAABRh5/1oAQIDAQGgBACCcmg71vLS+ZR3K7oq8Ku7shAhrC5E1x4q4buP3YBxyUZiyJ9ah8PG0skx0/zqz2Am0tDouaGuy3fgOaxRurkruAsCFwyINMjD0JAYYePjEQUGANVIAPFLwHy4w4LZWhR+6u+SLQ0K7iJqOaEEMnHS76yXRXljAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQErzD0JAAYUWGAAAFDnVjVIhMuJCxAAAAAANDSQMzk3tpA0Mrawtzo0QACcQHvoD6AAAAAAAAAAAB0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFvAAAAAAAAAAAAAAAABLUUtpEnlC4z33SeGHxRhIq/htUa7i3D8ghbwxhQTn44E/NZboQ==",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "44477257000003",
"hash": "HgLzLs1zrDiXTIEyLZG9LiKDoMVI/tfDZkn/8C0fA6A="
},
"fee": "999403",
"storage_fee": "8403",
"other_fee": "991000",
"in_msg": {
"@type": "raw.message",
"source": "EQB4peA-XGHBbK0KP3V3yRaGhXcRNRzQghk46XfWS6K8sZn4",
"destination": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU",
"value": "1000000",
"fwd_fee": "666672",
"ihr_fee": "0",
"created_lt": "44477257000002",
"body_hash": "ZZQlYDzGKugPE21+I1c4bkJeaSpQoXGEHT4g6dEyJTE=",
"msg_data": {
"@type": "msg.dataText",
"text": "aGkgZnJvbSBoZW1hbnRo"
},
"message": "Hello from expand.network"
},
"out_msgs": []
}
}
/getusertransactions
Get the historical transaction details for a specific user address.
GET
https://api.expand.network/chain/getusertransactions
Query Parameters
https://api.expand.network/chain/getusertransactions?address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R&chainId=1100
{
"status": 200,
"msg": "success",
"data": {
"transactions": [
{
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU"
},
"utime": 1707378056,
"data": "te6cckECBwEAAaQAA7VzGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvAAAoc6sapEOtKW9AAdZAcbY46vM/ezW4lAeTLXpAsgL2TzT+x1uW2wAAKHIDIuADZcSFiAABRh5/1oAQIDAQGgBACCcmg71vLS+ZR3K7oq8Ku7shAhrC5E1x4q4buP3YBxyUZiyJ9ah8PG0skx0/zqz2Am0tDouaGuy3fgOaxRurkruAsCFwyINMjD0JAYYePjEQUGANVIAPFLwHy4w4LZWhR+6u+SLQ0K7iJqOaEEMnHS76yXRXljAAxmMo2wxu/yQTySoV7u7+Con2csmcBloW0CrflBCQErzD0JAAYUWGAAAFDnVjVIhMuJCxAAAAAANDSQMzk3tpA0Mrawtzo0QACcQHvoD6AAAAAAAAAAAB0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFvAAAAAAAAAAAAAAAABLUUtpEnlC4z33SeGHxRhIq/htUa7i3D8ghbwxhQTn44E/NZboQ==",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "44477257000003",
"hash": "HgLzLs1zrDiXTIEyLZG9LiKDoMVI/tfDZkn/8C0fA6A="
},
"fee": "999403",
"storage_fee": "8403",
"other_fee": "991000",
"in_msg": {
"@type": "raw.message",
"source": "EQB4peA-XGHBbK0KP3V3yRaGhXcRNRzQghk46XfWS6K8sZn4",
"destination": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU",
"value": "1000000",
"fwd_fee": "666672",
"ihr_fee": "0",
"created_lt": "44477257000002",
"body_hash": "ZZQlYDzGKugPE21+I1c4bkJeaSpQoXGEHT4g6dEyJTE=",
"msg_data": {
"@type": "msg.dataText",
"text": "aGkgZnJvbSBoZW1hbnRo"
},
"message": "Hello from expand.network"
},
"out_msgs": []
},
{
"@type": "raw.transaction",
"address": {
"@type": "accountAddress",
"account_address": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU"
},
"utime": 1707345059,
"data": "te6cckECBgEAAXUAA7VzGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvAAAocgMi4AP1ppjC3lF+VuJ5qYnL1j4NwBpLv4tcTgb/kb3b80bb0AAAKG+TuzNDZcQEowABRgN3PoAQIDAQGgBACCcg6eayTeKemeCPHsYR2MgNatcHDUVkfPjp42zEzBbs6zaDvW8tL5lHcruirwq7uyECGsLkTXHirhu4/dgHHJRmIBFwyNP8jAYagQYDDUCQUA1UgA8UvAfLjDgtlaFH7q75ItDQruImo5oQQycdLvrJdFeWMADGYyjbDG7/JBPJKhXu7v4KifZyyZwGWhbQKt+UEJASvMBhqABhRYYAAAUOQGRcAEy4gJRgAAAAA0NJAzOTe2kDQytrC3OjRAAKAshZAB////5QAAALoAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOk5Vgw=",
"transaction_id": {
"@type": "internal.transactionId",
"lt": "44470144000003",
"hash": "rSlvQAHWQHG2OOrzP3s1uJQHky16QLIC9k80/sdblts="
},
"fee": "113567",
"storage_fee": "13567",
"other_fee": "100000",
"in_msg": {
"@type": "raw.message",
"source": "EQB4peA-XGHBbK0KP3V3yRaGhXcRNRzQghk46XfWS6K8sZn4",
"destination": "EQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr7MU",
"value": "100000",
"fwd_fee": "666672",
"ihr_fee": "0",
"created_lt": "44470144000002",
"body_hash": "ZZQlYDzGKugPE21+I1c4bkJeaSpQoXGEHT4g6dEyJTE=",
"msg_data": {
"@type": "msg.dataText",
"text": "aGkgZnJvbSBoZW1hbnRo"
},
"message": "Hello from expand.network"
},
"out_msgs": []
}
]
}
}
/portfolio
Get the comprehensive information about the assets/ tokens owned by a user.
GET
https://api.expand.network/chain/portfolio
Query Parameters
https://api.expand.network/chain/portfolio?chainId=1100&address=UQAxmMo2wxu_yQTySoV7u7-Con2csmcBloW0CrflBCQEr-7R
{
"status": 200,
"msg": "success",
"data": {
"native": "496234820",
"jettons": [
{
"name": "GAGARIN",
"symbol": "GGR",
"address": "EQDetcmWrfHLPRPVh3LoFvwso0zsjFnpmmXTKWj7s1ycNgu2",
"balance": "0",
"USDPrice": "0.09126314435356501"
},
{
"name": "WEMIX",
"symbol": "oWEMIX",
"address": "EQCf7Nb341dxOE3N0jimngRxGEV8T3zo-eU2EZVs_nchNhhZ",
"balance": "0",
"USDPrice": "NA"
},
{
"name": "Mantle",
"symbol": "jMNT",
"address": "EQAEuikLQVh2lDMrV99nTHqFL_TXEyCEJ1xKMuPT60tfvdps",
"balance": "0",
"USDPrice": "0.7233562122618723"
}
]
}
}