Bitcoin

/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.

https://api.expand.network/chain/getbalance?chainId=1800&address=1G82AFv7unVrZPSzfMNyFFAneJ2dnDFEar

/getblock

Get details of a block.

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

The block(sequence) number.

https://historicallp.api.expand.network/chain/getblock?blockNumber=161000&chainId=1800

/getgasprice

Get the current gas price from the 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?chainId=1800

/gettransaction

Get details of a 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?transactionHash=8e57ec8f0bfd6cd7e952388d5e98ca89a01113be0cbcead14ad12f9ee7ea2a1c&chainId=1800

/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.

beforeBlock

String

The block number before which user wants the transaction

afterBlock

String

The block number after which user wants the transaction

https://historicallp.api.expand.network/chain/getusertransactions?address=37jKPSmbEGwgfacCr2nayn1wTaqMAbA94Z&chainId=1800&beforeBlock=851602&afterBlock=851600

/sendtransaction

Send transaction on the chain.

POST https://api.expand.network/chain/sendtransaction

Request Body

Name
Type
Description

chainId*

Integer

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

rawTransaction*

String

The encoded transaction, obtained from signed transaction.

rpc

String

Remote procedural call URL.

{
    "chainId": "1801",
    "rawTransaction": "0200000001b2cd2ca1b85f93efe4a1d5fff142c764b9dde952090a1df01ed91e1ecab556d5000000006a4730440220425f6ca7ea82b7908624325cbc04c275967554e1b61f0becc880ff1306189c8d02207e158fccf87d53f97202d6fbaef15b9657a64cfb3c3d4fecb7ec2d471275a7f10121020822423e4027dce4b95564c0ad290113a5889ef9549d1f9b7135d58c4ef0cf43ffffffff01401f0000000000001976a9146451080a31a19e43943256d3fa70259e4af6ef2f88ac00000000"
}

/decodetransaction

Get the decoded transaction for the provided raw transaction.

POST https://api.expand.network/chain/decodetransaction

Request Body

Name
Type
Description

chainId*

Integer

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

rawTransaction*

String

The encoded transaction, obtained from signed transaction.

rpc

String

Remote procedural call URL.

{
    "chainId": "1801",
    "rawTransaction": "0100000001eaefefbd1f687ef4e861804aed59ef05e743ea85f432cc146f325d759a026ce6010000006a4730440220718954e28983c875858b5a0094df4607ce2e7c6e9ffea47f3876792b01755c1202205e2adc7c32ff64aaef6d26045f96181e8741e560b6f3a8ef2f4ffd2892add656012103142355370728640592109c3d2bf5592020a6b9226303c8bc98ab2ebcadf057abffffffff02005a6202000000001976a914fe7e0711287688b33b9a5c239336c4700db34e6388ac10ca0f24010000001976a914af92ad98c7f77559f96430dfef2a6805b87b24f888ac00000000"
}

Last updated