# Introduction

This is a simple proxy to create a public idena rpc. It is used to proxy and serve [https://rpc.idena.dev](https://rpc.idena.dev/), the default rpc used in [idena-js](https://www.idena.dev/idena-js/quick-start) library. Status of this public idena rpc is available here <https://status.idena.dev>.

Only a subset of all rpc idena-go endpoints are public:

## Identity

Retrive info about identity by idena address.

```bash
curl -X POST -H 'content-type:application/json;' https://rpc.idena.dev --data @- << EOF
{
    "method": "dna_identity",
    "id":2,
    "params": ["0xcf979f9472e38d45c577394747a3028ea7433bb5"]
}
EOF
```

## Epoch

Retrieve info about current epoch.

```bash
curl -X POST -H 'content-type:application/json;' https://rpc.idena.dev --data @- << EOF
{
	"method": "dna_epoch",
	"id": 2,
	"params": []
}
EOF
```

## Balance

Retrieve total balance and stake by idena address.

```bash
curl -X POST -H 'content-type:application/json;' https://rpc.idena.dev --data @- << EOF
{
	"method": "dna_getBalance",
	"id": 2,
	"params": ["0xcf979f9472e38d45c577394747a3028ea7433bb5"]
}
EOF
```

## Transaction hash

Retrieve transaction info by hash.

```bash
curl -X POST -H 'content-type:application/json;' https://rpc.idena.dev --data @- << EOF
{
	"method": "bcn_transaction",
	"id": 2,
	"params": ["0xe9f7ffe2f59a1e4c970c508d3cd5288e039e429ba85a5c00fdc7e39f51a70d1e"]
}
EOF
```

## Pending transactions

Retrieve pending transactions by idena address.

```bash
curl -X POST -H 'content-type:application/json;' https://rpc.idena.dev --data @- << EOF
{
	"method": "bcn_pendingTransactions",
	"id": 2,
	"params": [{ "address": "0xcf979f9472e38d45c577394747a3028ea7433bb5" }]
}
EOF
```

## Node sync status

Retrieve info about the sync status of node.

```bash
curl -X POST -H 'content-type:application/json;' https://rpc.idena.dev --data @- << EOF
{
	"method": "bcn_syncing",
	"id": 2
}
EOF
```

## Send raw transaction

Inject a forged and signed transaction.

```bash
curl -X POST -H 'content-type:application/json;' https://rpc.idena.dev --data @- << EOF
{
	"method": "bcn_sendRawTx",
	"id": 2,
	"params": ["0x00000000"]
}
EOF
```


---

# Agent Instructions: 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:

```
GET https://idena.gitbook.io/idelse/idena-rpc/introduction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
