⚡ Private API access, no rate limits, unlimited number of requests & more just for $50!
Zcash (ZEC)
Method: POST importaddress
Method not allowed
Adds a script (in hex) or address that can be watched as if it were in your wallet but cannot be used to spend.
Note: This call can take minutes to complete if rescan is true. If you have the full public key, you should call importpubkey instead of this.
Note: If you import a non-standard raw script in hex form, outputs sending to it will be treated as change, and not show up in many RPCs.
script
- string
The hex-encoded script (or address)
label
- string
Optional, default=""
An optional label.
rescan
- boolean
Optional, default=false
Rescan the wallet for transactions.
p2sh
- boolean
Optional, default=false
Add the P2SH version of the script as well
curl --location --request POST 'https://zec.getblock.io/mainnet/' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "importaddress", "params": [null, null, null, null], "id": "getblock.io"}'
{ "result": "null", "id": "getblock.io", "status_code": 405, "message": "Method not allowed" }
POST getbestblockhash
POST getblock
POST getblockchaininfo
POST getblockcount
POST getblockhash
POST getblockheader
POST getchaintips
POST getdifficulty
POST getmempoolinfo
POST getrawmempool
POST gettxout
POST gettxoutproof
POST gettxoutsetinfo
POST z_gettreestate
POST getexperimentalfeatures
POST getinfo
POST getmemoryinfo
POST help
POST getblocksubsidy
POST getblocktemplate
POST getlocalsolps
POST getmininginfo
POST getnetworksolps
POST createrawtransaction
POST decoderawtransaction
POST decodescript
POST fundrawtransaction
POST getrawtransaction
POST sendrawtransaction
POST signrawtransaction
POST estimatefee
POST estimatepriority
POST validateaddress
POST verifymessage
POST z_validateaddress
POST getaddressbalance
POST getaddressdeltas
POST getaddressmempool
POST getaddresstxids
POST getaddressutxos
POST getblockdeltas
POST getblockhashes
POST getspentinfo
POST verifychain
POST verifytxoutproof
POST setlogfilter
POST stop
POST z_getpaymentdisclosure
POST z_validatepaymentdisclosure
POST generate
POST getgenerate
POST setgenerate
POST getnetworkhashps
POST prioritisetransaction
POST submitblock
POST addnode
POST clearbanned
POST disconnectnode
POST getaddednodeinfo
POST getconnectioncount
POST getdeprecationinfo
POST getnettotals
POST getnetworkinfo
POST getpeerinfo
POST listbanned
POST ping
POST setban
POST createmultisig
POST addmultisigaddress
POST backupwallet
POST dumpprivkey
POST dumpwallet
POST encryptwallet
POST getaccount
POST getaccountaddress
POST getaddressesbyaccount
POST getbalance
POST getnewaddress
POST getrawchangeaddress
POST getreceivedbyaccount
POST getreceivedbyaddress
POST gettransaction
POST getunconfirmedbalance
POST getwalletinfo
POST importaddress
POST importprivkey
POST importpubkey
POST importwallet
POST keypoolrefill
POST listaccounts
POST listaddressgroupings
POST listlockunspent
POST listreceivedbyaccount
POST listreceivedbyaddress
POST listsinceblock
POST listtransactions
POST listunspent
POST lockunspent
POST move
POST sendfrom
POST sendmany
POST sendtoaddress
POST setaccount
POST settxfee
POST signmessage
POST z_exportkey
POST z_exportviewingkey
POST z_exportwallet
POST z_getbalance
POST z_getmigrationstatus
POST z_getnewaddress
POST z_getnotescount
POST z_getoperationresult
POST z_getoperationstatus
POST z_gettotalbalance
POST z_importkey
POST z_importviewingkey
POST z_importwallet
POST z_listaddresses
POST z_listoperationids
POST z_listreceivedbyaddress
POST z_listunspent
POST z_mergetoaddress
POST z_sendmany
POST z_setmigration
POST z_shieldcoinbase
POST z_viewtransaction
POST zcbenchmark
POST zcrawjoinsplit
POST zcrawkeygen
POST zcrawreceive
POST zcsamplejoinsplit
Explorers
Blockchain ExplorerPartnerships
Media KitExplorers
Blockchain ExplorerPartnerships
Media KitPartnerships
Media KitExplorers
Blockchain ExplorerExplorers
Blockchain ExplorerPartnerships
Media KitKakaoTalk