> For the complete documentation index, see [llms.txt](https://documentation.script.tv/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.script.tv/api-references/rpc-api-reference/examples.md).

# Examples

This document can be referred to view two examples, that is, GetVersion and GetAccount.

## GetVersion

This API returns the version of the blockchain software.

**RPC Method:** script.GetVersion

**Returns**

version: the version number

git\_hash: the git commit hash of the code base

timestamp: the build timestamp

// Request

`curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"script.GetVersion","params":[],"id":1}' http://localhost:16888/rpc`

// Result

`{`

`"jsonrpc": "2.0",`

`"id": 1,`

`"result": {`

`"version": "1.0",`

`"git_hash": "9d7669a735063a283ae8b6f0826183e3830c00a5",`

`"timestamp": "Tue Feb 19 23:31:32 UTC 2019"`

`}`

`}`

## GetAccount

This API returns the details of the account being queried in json format.

**RPC Method:** script.GetAccount

**Query Parameters**

address: the address of the account

**Returns**

code: the hash of the smart contract bytecode (for smart contract accounts)

coins: the native token balance

reserved\_funds: fund reserved for micropayment through the off-chain resource-oriented payment pool

root: the root hash of the data Merkle-Patricia trie (for smart contract accounts)

sequence: the current sequence number of the account

// Request

`curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"script.GetAccount","params":[{"address":"0x2E833968E5bB786Ae419c4d13189fB081Cc43bab"}],"id":1}' http://localhost:16888/rpc`

// Result

{

&#x20;`"jsonrpc": "2.0",`

&#x20;`"id": 1,`

&#x20;`"result": {`

&#x20;`"sequence": "1",`

&#x20;`"coins": {`

&#x20;`"SCPTWei": "0",`

&#x20;`"SPAYWei": "4999999979999999000000000000"`

&#x20;`},`

&#x20;`"reserved_funds": [],`

&#x20;`"last_updated_block_height": "0",`

&#x20;`"root": "0x0000000000000000000000000000000000000000000000000000000000000000",`

&#x20;`"code": "0x0000000000000000000000000000000000000000000000000000000000000000"`

&#x20;`}`

`}`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.script.tv/api-references/rpc-api-reference/examples.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
