Iguana RPC - docs.supernet.org


Active Member
Feb 26, 2016
Now that the parallel sync is looking pretty solid and it even verifies all the data (other than the actual sigs), I activated the backward compatible RPC.

That means if "services":1 is set when a coin is added, it will bind to that coin's RPC port and you can make the same calls as to bitcoind (or BitcoinDarkd)

curl --url "" --data "{\"method\":\"getblockhash\",\"params\":[100]}"


Now since iguana supports more than one coin, and maybe you are running with the existing bitcoind, I also support making queries through the iguana's RPC port 7778

curl --url "" --data "{\"method\":\"getblockhash\",\"params\":[100]}"

however, you need to make sure iguana knows what coin you are asking about, either with a "coin" field in the posted data or with a call to bitcoinrpc, which sets the default coin to use.
curl --url "" --data "{\"agent\":\"SuperNET\",\"method\":\"bitcoinrpc\",\"setcoin\":\"BTC\"}"

both of the above achieve the same result, and you can get the exact syntax for all the API from the help API call at

At the SuperNET API level, which is called internally by the bitcoin RPC layer, the "params" array is not used, rather each field is specifically set. The RPC layer automatically does this conversion, but if you can send in a request without the "params" array to the iguana's port 7778:
curl --url "" --data "{\"method\":\"getblockhash\",\"height\":100}"

I am using the site: https://chainquery.com/bitcoin-api for the exact syntax of fieldnames as it seems to be a pretty up to date one and ultimately most all of the bitcoin RPC will be available fully locally from the parallel sync iguana dataset.

iguana uses the incoming port to set the coin being used, but if you specifically add it to the curl post:
curl --url "" --data "{\"coin\":\"BTC\",\"method\":\"getblockhash\",\"params\":[100]}"

As you can see, things get quite a bit complicated to support all the various modes, so it is quite possible for there to be bugs. Please let me know if you run into any issues.

The SuperNET API that is parsing {\"agent\":\"agentname\",\"method\":\"methodname\",...} is at the lowest level and all the other paths eventually end up there.

The RPC layer converts the incoming request with or without specified coin and untyped params array into a specific set of typed fields.

The URL layer converts the incoming request into either a POST for the bitcoinrpc layer above or to the SuperNET API layer.

http://docs.supernet.org/ is automatically generated website with the output of the help API, but it can use a lot more human generated text. it combines templates from the help directory into the API test page on port 7778, the docs.supernet.org and also internally makes the C function declarations
  • Like
Reactions: ntto and Bloomie


Active Member
Feb 26, 2016
make sure to have the smallest bit of the services field set to enable the backward compatible RPC port, in the addcoin call \"services\":1

curl --url "" --data "{\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTCD\",\"services\":1}"

there are sample scripts that just do a curl call to start the parallel sync:
genbtc and btcd in the iguana directory.


Active Member
Feb 2, 2024
HOW YOU CAN RECOVER YOUR LOST CRYPTO/FUNDS: Lost hope in a crypto scam? I got my $394,330 back! I invested $430,000 in a bogus crypto site. Big returns promised, withdrawals blocked, extra fees demanded – it was a nightmare. Feeling trapped, I even considered the unthinkable. My family helped me through it, and my niece suggested HACKERSTEVE911. They'd helped her with grades, but I'd never thought of them for this. I contacted them, expecting little. But within four days, they recovered $394,330 back to my wallet! My hope, my life, was back. If you're in a similar situation, don't lose hope. Contact them on hackersteve911@gmail.com


Active Member
Jan 28, 2024
Discover the world of cryptocurrencies and witness extraordinary advancements at #TogetherTON. Unleash the potential of your $UP tokens on the #TonUp Launchpad, taking you on a thrilling journey where you can accumulate prestigious $TOT tokens. Don't let this remarkable opportunity slip away! Learn more and join us now at: https://go.tonup.io/GldKvG