Stacks

/getbalance

Get the balance or number of the given token in the requested public address.

GET https://api.expand.network/chain/getbalance

Query Parameters

NameTypeDescription

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.

tokenAddress

String

The address of token to get the balance of.

https://api.expand.network/chain/getbalance?chainId=1700&address=SM3WXM7T41Q3WD7A1JW9RW31VHG2PA9PJTQCMPBX7&tokenAddress=SM26NBC8SFHNW4P1Y4DFH27974P56WN86C92HPEHH.token-lqstx

/getblock

Get details of a block.

GET https://historicallp.api.expand.network/chain/getblock

Query Parameters

NameTypeDescription

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?chainId=1700&blockNumber=100

/getgasprice

Get the current gas price from the network.

GET https://api.expand.network/chain/getgasprice

Query Parameters

NameTypeDescription

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=1700

/gettransaction

Get details of a transaction.

GET https://api.expand.network/chain/gettransaction

Query Parameters

NameTypeDescription

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=1700&transactionHash=0x0a411719e3bfde95f9e227a2d7f8fac3d6c646b1e6cc186db0e2838a2c6cd9c0

/getusertransactions

Get the historical transaction details for a specific user address.

GET https://historicallp.api.expand.network/chain/getusertransactions

Query Parameters

NameTypeDescription

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.

sortOrder

String

The transaction sorting order. asc or desc. By default, desc.

pageToken

String

Page number

https://historicallp.api.expand.network/chain/getusertransactions?chainId=1700&address=SP8J8NZDN88QPS1PBA85R474QYS590HPRP34TEWM&sortOrder=desc&pageToken=162

/portfolio

Get the comprehensive information about the assets/ tokens owned by a user.

GET https://api.expand.network/chain/portfolio

Query Parameters

NameTypeDescription

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.

assetType

String

fungible/nonFungible standard choice. By default, all.

availableOnly

Boolean

By default, false. If true, tokens with balance > 0 will be listed.

https://api.expand.network/chain/portfolio?chainId=1700&address=SM3WXM7T41Q3WD7A1JW9RW31VHG2PA9PJTQCMPBX7&assetType=all&availableOnly=false

/getevents

Get the comprehensive information about the assets/ tokens owned by a user.

GET https://api.expand.network/chain/getevents

Query Parameters

NameTypeDescription

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.

contractAddress*

String

Public addess of the user.

sortOrder

String

Comma-separated value of tokens to get value of. Maximum 10 at a time.

pageToken

Boolean

By default, false. If true, tokens with balance > 0 will be listed.

https://api.expand.network/chain/portfolio?chainId=1700&address=SM3WXM7T41Q3WD7A1JW9RW31VHG2PA9PJTQCMPBX7&assetType=all&availableOnly=false

/sendtransaction

Send transaction on the chain.

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

Request Body

NameTypeDescription

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.

{
    "rawTransaction": "8080000000040063eaab97cc22687eb4428276cd477433972d468d0000000000000000000000000000012c0001cdea8a1884927b3b7d7b9b50f78559ad4b1bc3041134106cc8d8c106c46115580e3315aacba212ab03e047702aec07123f342cac0732690aac2772f0290534403020000000000051663eaab97cc22687eb4428276cd477433972d468d0000000000000bb8457870616e6420535441434b53205465737400000000000000000000000000000000",
    "chainId": "1701"
}

/decodetransaction

Get the decoded transaction for the provided raw transaction.

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

Request Body

NameTypeDescription

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.

{
    "rawTransaction": "8080000000040063eaab97cc22687eb4428276cd477433972d468d0000000000000000000000000000012c0001cdea8a1884927b3b7d7b9b50f78559ad4b1bc3041134106cc8d8c106c46115580e3315aacba212ab03e047702aec07123f342cac0732690aac2772f0290534403020000000000051663eaab97cc22687eb4428276cd477433972d468d0000000000000bb8457870616e6420535441434b53205465737400000000000000000000000000000000",
    "chainId": "1701"
}

Last updated