Introduction

This is a simple proxy to create a public idena rpc. It is used to proxy and serve https://rpc.idena.dev, the default rpc used in idena-js 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.

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.

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.

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.

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.

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.

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.

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

Last updated