> For the complete documentation index, see [llms.txt](https://docs.expand.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.expand.network/integrations/blockchains/non-evm-based-chains/solana.md).

# Solana

{% hint style="info" %}
**Versioned Transactions:** Expand now supports both versioned and legacy transactions, allowing users to access all the enhanced functionality versioned transactions offers
{% endhint %}

## /getbalance

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

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/chain/getbalance`

#### Query Parameters

<table><thead><tr><th width="172">Name</th><th width="117">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>The public address to get the balance of.</td></tr><tr><td>tokenAddress</td><td>String</td><td>The address of token to get the balance of.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/chain/getbalance?address=7STPYcDtmhgsg2XbyB7PwnNXwWkWKxc8gzycHmT32PXr&chainId=900
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "balance": "1878507"
    }
}
```

{% endtab %}
{% endtabs %}

## /getblock

Get details of a block.

<mark style="color:blue;">`GET`</mark> `https://historicallp.api.expand.network/chain/getblock`

#### Query Parameters

<table><thead><tr><th width="160">Name</th><th width="92">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>blockNumber<mark style="color:red;">*</mark></td><td>String</td><td>The block number or block hash.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://historicallp.api.expand.network/chain/getblock?blockNumber=48208733&chainId=900
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "difficulty": null,
        "gasLimit": null,
        "gasUsed": null,
        "hash": "6ZR4pNgiDnHGBBHB3mE9x9bnyxg7kzD1yhxbYXyhvwSH",
        "miner": null,
        "nonce": null,
        "number": 48208733,
        "parentHash": "9tvBefL3pS8ybJjQwXRZCAbn8qZZRk3A6cxvrWBoZJ2Z",
        "size": null,
        "timestamp": 1605085817,
        "totalDifficulty": null,
        "transactions": [
            {
                "meta": {
                    "err": null,
                    "fee": 5000,
                    "innerInstructions": [],
                    "loadedAddresses": {
                        "readonly": [],
                        "writable": []
                    },
                    "logMessages": [
                        "Call BPF program EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o",
                        "BPF program consumed 2640 of 200000 units",
                        "BPF program EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o success"
                    ],
                    "postBalances": [
                        22390653493680,
                        23357760,
                        3591360,
                        7299063360,
                        1554418560,
                        1
                    ],
                    "postTokenBalances": [],
                    "preBalances": [
                        22390653498680,
                        23357760,
                        3591360,
                        7299063360,
                        1554418560,
                        1
                    ],
                    "preTokenBalances": [],
                    "rewards": [],
                    "status": {
                        "Ok": null
                    }
                },
                "transaction": {
                    "message": {
                        "header": {
                            "numReadonlySignedAccounts": 0,
                            "numReadonlyUnsignedAccounts": 2,
                            "numRequiredSignatures": 1
                        },
                        "accountKeys": [
                            "D5Qh6N6UXVTifvebzqPHdHCeuQXWvoTx6eSZ9TEas661",
                            "2fTzeukxn72rBLKfJpL5sNcRxAQcHPbq3HHp2swZPjCv",
                            "FQbCNSVH3RgosCPB4CJRstkLh5hXkvuXzAjQzT11oMYo",
                            "CiGy4cBqRi7EdU8pmfvqx8TpjqVua7K8Ke8zo9nhhg1E",
                            "EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o",
                            "11111111111111111111111111111111"
                        ],
                        "recentBlockhash": "Bzn13YwS1jQgd25FwQiF7eeMCwqmPsnkGZtaH664TXyB",
                        "instructions": [
                            {
                                "accounts": [
                                    1,
                                    2,
                                    3,
                                    2,
                                    2
                                ],
                                "data": "12VeXEVoV",
                                "programIdIndex": 4
                            },
                            {
                                "accounts": [
                                    0,
                                    0
                                ],
                                "data": "3Bxs463y57eAuzS3",
                                "programIdIndex": 5
                            }
                        ],
                        "indexToProgramIds": {}
                    },
                    "signatures": [
                        "5kQPso2etarC45fv6c412CphbPXH6sDq12n57f353BNqdV8DGDgPvRKzZpQwQLCVdvTaqWZrEFbBn83wH9PQ2Y6n"
                    ]
                }
            }
        ],
        "transactionsRoot": null,
        "uncles": null
    }
}
```

{% endtab %}
{% endtabs %}

## /gettransaction

Get details of a transaction.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/chain/gettransaction`

#### Query Parameters

<table><thead><tr><th width="192">Name</th><th width="84">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>transactionHash<mark style="color:red;">*</mark></td><td>String</td><td>The transaction Hash.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/chain/gettransaction?chainId=900&transactionHash=Kth19WQW3AwhL4xz4Dko68eiNCwBQ65pXV6Wbm2Fwjx37pTD8DFNfk6Ga6FCQ9MthrwWybLyPDdwUEjEexaoLup
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "hash": "Kth19WQW3AwhL4xz4Dko68eiNCwBQ65pXV6Wbm2Fwjx37pTD8DFNfk6Ga6FCQ9MthrwWybLyPDdwUEjEexaoLup",
        "transactionStatus": null,
        "blockNumber": 175446089,
        "timestamp": 1675234161,
        "from": "AGaSHpDpyveuLyiaocNXMMFCf1LCBBynyaKMJkL8AKK4",
        "to": "3vxLXJqLqF3JG5TCbYycbKWRBbCJQLxQmBGCkyqEEefL",
        "value": "0",
        "transactionFees": 5000,
        "gas": null,
        "gasPrice": null,
        "input": "null6mJFQCt94hG4CKNYKgVcwk2tyD9N3TUNEqiQRCfTJYmtTs3i8M7RHq",
        "nonce": null,
        "network": null
    }
}
```

{% endtab %}
{% endtabs %}

## /**getusertransactions**

Get the historical transaction details for a specific user address.&#x20;

<mark style="color:blue;">`GET`</mark> `https://historicallp.api.expand.network/chain/getusertransactions`

#### Query Parameters

<table><thead><tr><th width="175">Name</th><th width="109">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>The public address of the user.</td></tr><tr><td>pageToken</td><td>String</td><td>The page cursor present at the top to fetch the next page.</td></tr><tr><td>pageSize</td><td>String</td><td>The page size. <br>By Default 30 and Max 100</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://historicallp.api.expand.network/chain/getusertransactions?chainId=900&address=5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1&pageSize=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "transactions": [
            {
                "blockTime": 1734931589,
                "meta": {
                    "computeUnitsConsumed": 139570,
                    "err": null,
                    "fee": 105000,
                    "innerInstructions": [
                        {
                            "index": 0,
                            "instructions": [
                                {
                                    "parsed": {
                                        "info": {
                                            "lamports": 1392000,
                                            "newAccount": "EJZGDqomYD2TEkBrFK3qzogEZVX96a7TyYUEhpA6eQqN",
                                            "owner": "BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB",
                                            "source": "RRbvsvJHLJe8Gynex6FbWTZruturMV2iLrEP5Ma9SdB",
                                            "space": 72
                                        },
                                        "type": "createAccount"
                                    },
                                    "program": "system",
                                    "programId": "11111111111111111111111111111111",
                                    "stackHeight": 2
                                },
                                {
                                    "parsed": {
                                        "info": {
                                            "amount": "998500",
                                            "authority": "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                                            "destination": "E3qXryYDHgCnPWapgRU3TRfXDd3KsG1m9LnitUqkvuqr",
                                            "source": "G6Qo3WW7RbWpSmACAocTBVgx6JW5kgRpUhABphEoDMfP"
                                        },
                                        "type": "transfer"
                                    },
                                    "program": "spl-token",
                                    "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                                    "stackHeight": 2
                                }
                            ]
                        }
                    ],
                    "logMessages": [
                        "Program BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB invoke [1]",
                        "Program log: Instruction: ReceiveAndSwap",
                        "Program 11111111111111111111111111111111 invoke [2]",
                        "Program 11111111111111111111111111111111 success",
                        "Program log: Hash 010466989f7fa631f49188e2d87a83210b040c2953c834cb4fa84cad7ae5441e",
                        "Program log: Add rewards 1500",
                        "Program log: Receive amount: 998500",
                        "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
                        "Program log: Instruction: Transfer",
                        "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 4645 of 368233 compute units",
                        "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
                        "Program BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB consumed 139270 of 500000 compute units",
                        "Program BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB success",
                        "Program ComputeBudget111111111111111111111111111111 invoke [1]",
                        "Program ComputeBudget111111111111111111111111111111 success",
                        "Program ComputeBudget111111111111111111111111111111 invoke [1]",
                        "Program ComputeBudget111111111111111111111111111111 success"
                    ],
                    "postBalances": [
                        6530832359,
                        9489403,
                        1392000,
                        2039280,
                        1141440,
                        1224960,
                        1,
                        1802740,
                        2039380,
                        322384746841,
                        67137858741,
                        1231920,
                        4625869600,
                        934087680,
                        1,
                        1141440
                    ],
                    "postTokenBalances": [
                        {
                            "accountIndex": 3,
                            "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                            "owner": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
                            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                            "uiTokenAmount": {
                                "amount": "1003278",
                                "decimals": 6,
                                "uiAmount": 1.003278,
                                "uiAmountString": "1.003278"
                            }
                        },
                        {
                            "accountIndex": 8,
                            "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                            "owner": "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                            "uiTokenAmount": {
                                "amount": "4823094013324",
                                "decimals": 6,
                                "uiAmount": 4823094.013324,
                                "uiAmountString": "4823094.013324"
                            }
                        }
                    ],
                    "preBalances": [
                        6532329359,
                        9489403,
                        0,
                        2039280,
                        1141440,
                        1224960,
                        1,
                        1802740,
                        2039380,
                        322384746841,
                        67137858741,
                        1231920,
                        4625869600,
                        934087680,
                        1,
                        1141440
                    ],
                    "preTokenBalances": [
                        {
                            "accountIndex": 3,
                            "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                            "owner": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
                            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                            "uiTokenAmount": {
                                "amount": "4778",
                                "decimals": 6,
                                "uiAmount": 0.004778,
                                "uiAmountString": "0.004778"
                            }
                        },
                        {
                            "accountIndex": 8,
                            "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                            "owner": "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                            "uiTokenAmount": {
                                "amount": "4823095011824",
                                "decimals": 6,
                                "uiAmount": 4823095.011824,
                                "uiAmountString": "4823095.011824"
                            }
                        }
                    ],
                    "rewards": [],
                    "status": {
                        "Ok": null
                    }
                },
                "slot": 309237379,
                "transaction": {
                    "message": {
                        "accountKeys": [
                            {
                                "pubkey": "RRbvsvJHLJe8Gynex6FbWTZruturMV2iLrEP5Ma9SdB",
                                "signer": true,
                                "source": "transaction",
                                "writable": true
                            },
                            {
                                "pubkey": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
                                "signer": false,
                                "source": "transaction",
                                "writable": true
                            },
                            {
                                "pubkey": "EJZGDqomYD2TEkBrFK3qzogEZVX96a7TyYUEhpA6eQqN",
                                "signer": false,
                                "source": "transaction",
                                "writable": true
                            },
                            {
                                "pubkey": "E3qXryYDHgCnPWapgRU3TRfXDd3KsG1m9LnitUqkvuqr",
                                "signer": false,
                                "source": "transaction",
                                "writable": true
                            },
                            {
                                "pubkey": "BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB",
                                "signer": false,
                                "source": "transaction",
                                "writable": false
                            },
                            {
                                "pubkey": "7DJmPDouXrVgzrcSiAVW9y7mHEqay5LvvAFNSeS1bhAi",
                                "signer": false,
                                "source": "transaction",
                                "writable": false
                            },
                            {
                                "pubkey": "ComputeBudget111111111111111111111111111111",
                                "signer": false,
                                "source": "transaction",
                                "writable": false
                            },
                            {
                                "pubkey": "5NQbhSDg4TKVvq7z3PTbqSzAiHwB7amxmxqkViQnyVnZ",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": true
                            },
                            {
                                "pubkey": "G6Qo3WW7RbWpSmACAocTBVgx6JW5kgRpUhABphEoDMfP",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": true
                            },
                            {
                                "pubkey": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "EroEBUxixXh3pZ53u4xRbyRjRBifsiZuHChDQXQ7eMrn",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "9oftRo8jHB79iR4wEcSjQ9eCUaiAcxV4N1MstyyxzAq3",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "11111111111111111111111111111111",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            },
                            {
                                "pubkey": "AMsgYtqR3EXKfsz6Rj2cKnrYGwooaSk7BQGeyVBB5yjS",
                                "signer": false,
                                "source": "lookupTable",
                                "writable": false
                            }
                        ],
                        "addressTableLookups": [
                            {
                                "accountKey": "2JcBAEVnAwVo4u8d61iqgHPrzZuugur7cVTjWubsVLHj",
                                "readonlyIndexes": [
                                    0,
                                    1,
                                    25,
                                    11,
                                    12,
                                    13,
                                    3
                                ],
                                "writableIndexes": [
                                    6,
                                    7
                                ]
                            }
                        ],
                        "instructions": [
                            {
                                "accounts": [
                                    "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
                                    "RRbvsvJHLJe8Gynex6FbWTZruturMV2iLrEP5Ma9SdB",
                                    "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                                    "EroEBUxixXh3pZ53u4xRbyRjRBifsiZuHChDQXQ7eMrn",
                                    "5NQbhSDg4TKVvq7z3PTbqSzAiHwB7amxmxqkViQnyVnZ",
                                    "G6Qo3WW7RbWpSmACAocTBVgx6JW5kgRpUhABphEoDMfP",
                                    "7DJmPDouXrVgzrcSiAVW9y7mHEqay5LvvAFNSeS1bhAi",
                                    "EJZGDqomYD2TEkBrFK3qzogEZVX96a7TyYUEhpA6eQqN",
                                    "9oftRo8jHB79iR4wEcSjQ9eCUaiAcxV4N1MstyyxzAq3",
                                    "E3qXryYDHgCnPWapgRU3TRfXDd3KsG1m9LnitUqkvuqr",
                                    "7DyZQw3iV5zhHssnNA6Nopi5zc8NGLbYjHMcaok6NN66",
                                    "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                                    "11111111111111111111111111111111",
                                    "AMsgYtqR3EXKfsz6Rj2cKnrYGwooaSk7BQGeyVBB5yjS"
                                ],
                                "data": "h55jkgWiYsEg4fsAKUwzot75ZSkDmud6K9yG5km8ReG8qeXoQpnDbjyjSZ7iCT774LpybpKvGcbgaNUr64VddsocQwzn9D3sVKXEqgyTc2Ltw8df8hy97bPT97cg3Uqwgbyg6d1V9qW5o8h9niSzLBsGQds8yoeWF6rJBxwJYWM34HZ4xodLoyzCdpTPJspe26nBSHCWhagAa4gJNs",
                                "programId": "BrdgN2RPzEMWF96ZbnnJaUtQDQx7VRXYaHHbYCBvceWB",
                                "stackHeight": null
                            },
                            {
                                "accounts": [],
                                "data": "EvSMNP",
                                "programId": "ComputeBudget111111111111111111111111111111",
                                "stackHeight": null
                            },
                            {
                                "accounts": [],
                                "data": "3QAwFKa3MJAs",
                                "programId": "ComputeBudget111111111111111111111111111111",
                                "stackHeight": null
                            }
                        ],
                        "recentBlockhash": "D7tT5dfVnjZotnGEuFHhH1BKDQWyp2hnSYXTxoRTVfNR"
                    },
                    "signatures": [
                        "3cR55zNxwfocNpezbN8uqY5Kyr2wevJW9AYZGeTWffvoMJgsCUi26wkTx1aXMGsGeYtjByrHn8D8cWHKXLox2RaH"
                    ]
                },
                "version": 0
            }
        ],
        "nextPageToken": "3cR55zNxwfocNpezbN8uqY5Kyr2wevJW9AYZGeTWffvoMJgsCUi26wkTx1aXMGsGeYtjByrHn8D8cWHKXLox2RaH",
        "pageSize": 1
    }
}
```

{% endtab %}
{% endtabs %}

## **/**&#x70;ortfolio

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

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/chain/portfolio`

#### Query Parameters

<table><thead><tr><th width="157">Name</th><th width="99">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public addess of the user.</td></tr><tr><td>tokens</td><td>String</td><td>Comma-separated value of tokens to get value of. Maximum 10 at a time.</td></tr><tr><td>availableOnly</td><td>Boolean</td><td>By default, true. <br>If true, tokens with balance > 0 will be listed.</td></tr><tr><td>pageToken</td><td>String</td><td><p>The page number that the user wants to fetch. </p><p><em>Available at the end of the response.</em></p></td></tr><tr><td>assetType</td><td>String</td><td>Type of the asset. <br>Either "fungible" or "nonFungible". By default, "all".</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/chain/portfolio?chainId=900&address=CGUA416Urx9YrRZKgadyGrsuUi3JwzVo4RbfQK1JpW9S&availableOnly=true&assetType=fungible&pageToken=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "native": "6003167868",
        "splBalances": [
            {
                "name": "Blaze",
                "symbol": "BLZE",
                "assetType": "FungibleToken",
                "balance": "4105202188334",
                "address": "BLZEEuZUBVqFhj8adcCFPJvPVCiCyVmh3hkJMrU8KuJA",
                "decimals": "9",
                "USDPrice": "0.0029989965"
            },
            {
                "name": "Saga-drop.com $SAGA AIRDROP",
                "symbol": "SAGA",
                "assetType": "FungibleToken",
                "balance": "44",
                "address": "73RF9z3CZCkviSBb5xwpcHUfdEcRGPUzaHnvUsnqegdC",
                "decimals": "0",
                "USDPrice": "NA"
            },
            {
                "name": "Saga-drop.com $SAGA AIRDROP",
                "symbol": "SAGA",
                "assetType": "FungibleToken",
                "balance": "27",
                "address": "64a5pKqPAHxHoB64ChCvV2kb2di45Ry33tcTPc4PBham",
                "decimals": "0",
                "USDPrice": "NA"
            },
            {
                "name": "memevipz.com 🎁 Airdrop",
                "symbol": "MEMEDROP",
                "assetType": "FungibleAsset",
                "balance": "87019539",
                "address": "4v3WvznZbvc8sXgykx1Us8mtQr3fGBH2vf3EMG6Xjs2E",
                "decimals": "0",
                "USDPrice": "NA"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

## **/**&#x67;etstakepositions

This endpoint retrieves information about staked native asset positions for a specified address, including the total staked amount across all validators as well as the individual positions staked with each validator.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/chain/getstakepositions`

#### Query Parameters

<table><thead><tr><th width="180">Name</th><th width="99">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details.</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>Public addess of the user.</td></tr><tr><td>validatorAddress</td><td>String</td><td>Address of Validator</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/chain/getstakepositions?address=FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ&chainId=900
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
  "status": 200,
  "msg": "success",
  "data": {
    "totalStake": "732688",
    "activeStake": "732688",
    "stakePositions": [
      {
        "stake": "732688",
        "staker": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
        "withdrawer": "FbXAffyRzZFSM8zRY7yWmCk99pGCUWGS5eoSnywYLhhJ",
        "validator": "J2nUHEAgZFRyuJbFjdqPrAa9gyWDuc7hErtDQHPhsYRp",
        "rentExemptReserve": "2282880",
        "activationEpoch": "694",
        "deactivationEpoch": "18446744073709552000"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## **/sendtransaction**

Send transaction on the chain.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/chain/sendtransaction`

#### Request Body

<table><thead><tr><th width="170">Name</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>Integer</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>rawTransaction<mark style="color:red;">*</mark></td><td>String</td><td>The encoded transaction, obtained from signed transaction.</td></tr><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "chainId": "900",
    "rawTransaction": "AZ+tnha8KkJHUhonuRhExKKi/iUVxLPzSWUFg0I9jA8qnzI+VeF/srAbjCC1yRXZkSFIAiL674Ym3nQXknMYCwABAAEDjRyE59XRrMagBCI1SF13/RwKCo1S07RveObs+BVA09415JpoPP9KKUdrIVusGR4UYoAZhh30KfDMN9gGEun3ygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ0TH7GcLvfxR7z5m2gBeRh/PWkqISy7hwhr2FsIs19oBAgIAAQwCAAAAAOH1BQAAAAA="
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "900",
        "transactionHash": "XLtvQ1Lr8RxVSD4YB4ptkY3XpB9UcCGktfhfBU4XNxQBwayuZ21BuFpa8vTm9q7i1eB5TsuQNVfAgndbZ5sXord"
    }
}
```

{% endtab %}
{% endtabs %}

## /decodetransaction

Get the decoded transaction for the provided raw transaction.&#x20;

<mark style="color:green;">`POST`</mark> `https://api.expand.network/chain/decodetransaction`

#### Request Body

<table><thead><tr><th width="172">Name</th><th width="99">Type</th><th>Description</th></tr></thead><tbody><tr><td>chainId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. By default, Ethereum.</td></tr><tr><td>chainSymbol</td><td>String</td><td>Refer to the <a href="/pages/5o1xMsQPqXw9GBfGTpdB">Chain ID </a>page for details. </td></tr><tr><td>rawTransaction<mark style="color:red;">*</mark></td><td>String</td><td>The raw transaction to be given for decoding.</td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "chainId": "900",
    "rawTransaction": "AZANUOpAHOdEZSKG5HuXe1QZ90kX2VULfpMIc7xpp/GoUYFWJ4CsaNokyrNa0u5qcfEdJI244WL5SZqZt1meEQoBAAECP0Qyw9NtTa7gVBomcZX4zRuYuCee7NvzTKGbbvggCLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJ/CPjp2H4E3Y6Q3Sa1S+36peOFuNhP226cr6lgpMpGWAQECAAAMAgAAAID2SuHHAi0V"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "parsedTx": {
            "recentBlockhash": "Bkdcaqq3yx8wNovuZEALhYrndAtcSNhw1SqqE3FxYg1K",
            "feePayer": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
            "nonceInfo": null,
            "instructions": [
                {
                    "keys": [
                        {
                            "pubkey": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
                            "isSigner": true,
                            "isWritable": true
                        },
                        {
                            "pubkey": "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM",
                            "isSigner": true,
                            "isWritable": true
                        }
                    ],
                    "programId": "11111111111111111111111111111111",
                    "data": [
                        2,
                        0,
                        0,
                        0,
                        128,
                        246,
                        74,
                        225,
                        199,
                        2,
                        45,
                        21
                    ]
                }
            ],
            "signers": [
                "5FxzzbvHSoa9WH4VrMChdp23CcacCpbfpmgKxMFYXJVM"
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}
