API description

Coin network API

Scripts to call here:

Methods to call

getblockhash

Returns block hash

Sample query:

curl 'https://api.arikado.xyz/btc.php?method=getblockhash&number=123456'
        

Sample reply:

"0000000000002917ed80650c6174aac8dfc46f5fe36480aaef682ff6cd83c3ca"
        

getblock

Returns block contents

Query sample:

curl 'https://api.arikado.xyz/btc.php?method=getblock&hash=0000000000002917ed80650c6174aac8dfc46f5fe36480aaef682ff6cd83c3ca'
        

Query reply:

{
    "hash":"0000000000002917ed80650c6174aac8dfc46f5fe36480aaef682ff6cd83c3ca",
    "confirmations":540562,
    "strippedsize":4179,
    "size":4179,
    ...
}
        

getmininginfo

Show mining info for specific currency.

Sample query:

curl 'https://api.arikado.xyz/btc.php?method=getmininginfo'
        

Sample reply:

{
    "blocks":664015,
    "difficulty":18599593048299.49,
    "networkhashps":1.461906172987193e+20,
    "pooledtx":9551,
    "chain":"main",
    "warnings":""
}
        

gettransaction

Returns transaction info in JSON format. It could be any transaction for Gridcoin, but only own transactions for Bitcoin and others.

Sample query:

https://api.arikado.xyz/btc.php?method=gettransaction&hash=921db4a479c82cce9112c5b730bf096cffe3866ba5cf57005e5f4c9348c52771        

Sample reply:

{
    "amount":-0.00102227,
    "fee":-4.68e-6,
    "confirmations":13995,
    "blockhash":"00000000000000000008f6001c55bd441d84bfc072742df833c7ec7dac3229ec",
    "blockheight":650027,
    "blockindex":694,
    "blocktime":1601092843,
    ...
}
        

validateaddress

Return address validation result

Sample query:

curl 'https://api.arikado.xyz/btc.php?method=validateaddress&address=bc1q3n5slzha7elehtfmrlhak9md803jcarwnnmdlh'
        

Sample reply:

true
        

magnitude_unit

Get magnitude unit

Query sample:

curl 'https://api.arikado.xyz/grc.php?method=magnitude_unit'
        

Query reply:

0.25
        

listprojects

Return project list for Gridcoin.

Query sample:

curl 'https://api.arikado.xyz/grc.php?method=listprojects'
        

Query reply:

{
    "Amicable_Numbers":{
        "version":1,
        "display_name":"Amicable Numbers",
        "url":"http://sech.me/boinc/Amicable/@",
        "base_url":"http://sech.me/boinc/Amicable/",
        "display_url":"http://sech.me/boinc/Amicable/",
        "stats_url":"http://sech.me/boinc/Amicable/stats/",
        "time":"2020-11-05 01:10:01 UTC"
    },
    "collatz_conjecture":{
        ...
    },
    ...
}
        

Exceptions and errors

Error sample:

{
    "error":true,
    "reason":"Exception",
    "message":"WalletReplyError"
}
        

QR code generator

Generates QR code png image for specific address.

Sample:

<img src='https://api.arikado.xyz/qr.php?str=SMF8XaJnx7mbjb2rBe6k2sLANARX2Rb27L'>