Aptos
/getbalance
Get the balance or number of the native token in the requested public address.
GET https://api.expand.network/chain/getbalance
Query Parameters
https://api.expand.network/chain/getbalance?address=0xccd1f5fae72dfe1f2f41c425e77170e2c3aef3d1e7f9f301453806bfbf565177&chainId=1400{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "1071721119"
    }
}/getblock
Get details of a block.
GET https://api.expand.network/chain/getblock
Query Parameters
https://api.expand.network/chain/getblock?blockNumber=47654752&chainId=1400{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
        "miner": null,
        "nonce": null,
        "number": "47654752",
        "parentHash": null,
        "size": null,
        "timestamp": "1681636026911155",
        "totalDifficulty": null,
        "transactions": [
            {
                "version": "122660455",
                "hash": "0xe2ae82c6c29ea7ab9aa66bdb8d9153a188b653498fefa0e51347419a3e79efed",
                "state_change_hash": "0x47b9b8f124d155c55c396ac6047909312106186646738c12f150f3721f928fbc",
                "event_root_hash": "0x3abbe8ac0d24cf244d33ff1242113abcccabc5724d1517f5ad0b38877ac4d630",
                "state_checkpoint_hash": null,
                "gas_used": "0",
                "success": true,
                "vm_status": "Executed successfully",
                "accumulator_root_hash": "0xbe2434630c973a72e4b61c1bf4f18b6357352e0da1939f51f1b3f466f6705329",
                "changes": [
                    {
                        "address": "0x1",
                        "state_key_hash": "0x5ddf404c60e96e9485beafcabb95609fed8e38e941a725cae4dcec8296fb32d7",
                        "data": {
                            "type": "0x1::block::BlockResource",
                            "data": {
                                "epoch_interval": "7200000000",
                                "height": "47654752",
                                "new_block_events": {
                                    "counter": "47654753",
                                    "guid": {
                                        "id": {
                                            "addr": "0x1",
                                            "creation_num": "3"
                                        }
                                    }
                                },
                                "update_epoch_interval_events": {
                                    "counter": "0",
                                    "guid": {
                                        "id": {
                                            "addr": "0x1",
                                            "creation_num": "4"
                                        }
                                    }
                                }
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0x1",
                        "state_key_hash": "0x8048c954221814b04533a9f0a9946c3a8d472ac62df5accb9f47c097e256e8b6",
                        "data": {
                            "type": "0x1::stake::ValidatorPerformance",
                            "data": {
                                "validators": [
                                    {
                                        "failed_proposals": "0",
                                        "successful_proposals": "10"
                                    }
                                ]
                            }
                        },
                        "type": "write_resource"
                    },
                    {
                        "address": "0x1",
                        "state_key_hash": "0x7b1615bf012d3c94223f3f76287ee2f7bdf31d364071128b256aeff0841b626d",
                        "data": {
                            "type": "0x1::timestamp::CurrentTimeMicroseconds",
                            "data": {
                                "microseconds": "1681636026911155"
                            }
                        },
                        "type": "write_resource"
                    }
                ],
                "id": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
                "epoch": "2231",
                "round": "11072",
                "events": [
                    {
                        "guid": {
                            "creation_number": "3",
                            "account_address": "0x1"
                        },
                        "sequence_number": "47654752",
                        "type": "0x1::block::NewBlockEvent",
                        "data": {
                            "epoch": "2231",
                            "failed_proposer_indices": [],
                            "hash": "0xc177dd30b5e2e68e6f8a80469a82c447f8786afc1341a11183ad570f0112affe",
                            "height": "47654752",
                            "previous_block_votes_bitvec": "0x81ff97eeff69ef7e8fe5bdff7c",
                            "proposer": "0xb4a4f1ef8b0702d85547dc444571a473f736e1205a86db36dad13815ad9bbbf6",
                            "round": "11072",
                            "time_microseconds": "1681636026911155"
                        }
                    }
                ],
                "previous_block_votes_bitvec": [
                    129,
                    255,
                    151,
                    238,
                    255,
                    105,
                    239,
                    126,
                    143,
                    229,
                    189,
                    255,
                    124
                ],
                "proposer": "0xb4a4f1ef8b0702d85547dc444571a473f736e1205a86db36dad13815ad9bbbf6",
                "failed_proposer_indices": [],
                "timestamp": "1681636026911155",
                "type": "block_metadata_transaction"
            }
        ]
    }
}/gettransaction
Get details of a transaction.
GET https://api.expand.network/chain/gettransaction
Query Parameters
https://api.expand.network/chain/gettransaction?chainId=1400&transactionHash=0xe2532049fca2c58bab4f32778469f8b4de47e15fed0de40e0c24eb2be226c82d{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "0xe2532049fca2c58bab4f32778469f8b4de47e15fed0de40e0c24eb2be226c82d",
        "transactionStatus": true,
        "timestamp": "1687506074530639",
        "from": "0x7ea47ff5231ccc1fa81bd90fc8367d7bdb8e25daa2b8294dff93715420ab5ba3",
        "to": null,
        "value": null,
        "transactionFees": "323",
        "gas": "200000",
        "gasPrice": "100",
        "input": null,
        "nonce": null,
        "network": null
    }
}/getgasprice
Get the current gas price from the network.
GET https://api.expand.network/chain/getgasprice
Query Parameters
https://api.expand.network/chain/getgasprice?chainSymbol=APT{
    "status": 200,
    "msg": "success",
    "data": {
        "gasPrice": "100"
    }
}/sendtransaction
Send transaction on the chain.
POST https://api.expand.network/chain/sendtransaction
Request Body
{   
    "chainId": "1400",
    "rawTransaction": "gDjn3zwy3kvqbul7NgB81Ce5fZ9B1y3L508UwTV2ZVIeAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQRjb2luCHRyYW5zZmVyAQcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQphcHRvc19jb2luCUFwdG9zQ29pbgACIM0mOLBts6prchQV2uykOl5NrjQrmdPLAJGO04eAMDw7CExLTAAAAAAA6AMAAAAAAABkAAAAAAAAABFtiWQAAAAAAgAgjhPwSNdxs13Zr3j92aNnTHzkrsJJzIh51gi/xKNaUw9AeqtnqL1X6gXm6GcPhf9jiO6ma+YOYhOGFh8F1XGMQg8IxOFBDVF2g1EToVMUSfUEzvdZk/AzgwZB8yTHoZjVDA=="
}{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1400",
        "transactionHash": "0x0df58478f17d3e94a1f033ee981ef7c34bd34f8e2ae4572915062a3575f8bbe2"
    }
}Last updated

