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

Name
Type
Description

rpc

String

Remote procedural call URL

chainId*

String

chainSymbol

String

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

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

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

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId*

String

chainSymbol

String

https://api.expand.network/chain/getgasprice?chainId=1700

/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

chainSymbol

String

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

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId

String

chainSymbol

String

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

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId

String

chainSymbol

String

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

This endpoint retrieves a list of events that a given contractAddress has emitted.

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

Query Parameters

Name
Type
Description

rpc

String

Remote procedural call URL.

chainId

String

chainSymbol

String

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/getevents?chainId=1700&contractAddress=SP6P4EJF0VG8V0RB3TQQKJBHDQKEF6NVRD1KZE3C.satoshibles&sortOrder=desc&pageToken=1

/sendtransaction

Send transaction on the chain.

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

Request Body

Name
Type
Description

chainId*

Integer

chainSymbol

String

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

Name
Type
Description

chainId*

Integer

chainSymbol

String

rawTransaction*

String

The encoded transaction, obtained from signed transaction.

rpc

String

Remote procedural call URL.

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

Last updated