idelse
  • Welcome to idelse
  • idena-rpc
    • Introduction
    • Run Idena as systemd service
    • How to install
    • Repository
  • idena-js
    • Quick start
    • Repository
  • idena-pocket
    • Introduction
    • Repository
  • idena-ledger
    • How to use Ledger Nano
    • Repository
  • idena-docker
    • Introduction
Powered by GitBook
On this page
  • Identity
  • Epoch
  • Balance
  • Transaction hash
  • Pending transactions
  • Node sync status
  • Send raw transaction

Was this helpful?

  1. idena-rpc

Introduction

PreviousWelcome to idelseNextRun Idena as systemd service

Last updated 4 years ago

Was this helpful?

This is a simple proxy to create a public idena rpc. It is used to proxy and serve , the default rpc used in library. Status of this public idena rpc is available here .

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

https://rpc.idena.dev
idena-js
https://status.idena.dev