FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests
Method: POST importaddress
方法不允许
添加一个地址或脚本(十六进制),可以像在钱包中一样查看但不能用于消费。需要一个新的钱包备份。
注意如果重新扫描为真,此调用可能需要一个多小时才能完成,在此期间,其他 rpc 调用可能会报告导入的地址存在但相关交易仍然丢失,导致暂时不正确/虚假的余额和未花费的输出,直到重新扫描完成。
如果你有完整的公钥,你应该调用 importpubkey 而不是这个。
提示使用 importmulti 导入多个地址。
注意如果您以十六进制形式导入非标准原始脚本,发送到它的输出将被视为更改,并且不会出现在许多 RPC 中。
说明 使用“getwalletinfo”查询扫描进度。
address
- 字符串,必填
比特币地址(或十六进制编码的脚本)
label
- 字符串,可选,默认=””
可选标签
rescan
- 布尔值,可选,默认=真
重新扫描钱包进行交易
p2sh
- 布尔值,可选,默认=false
还要添加脚本的 P2SH 版本
curl --location --request POST 'https://btc.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 getblockstats
POST getchaintips
POST getchaintxstats
POST getdifficulty
POST getfinalizedblockhash
POST getmempoolancestors
POST getmempooldescendants
POST getmempoolentry
POST getmempoolinfo
POST getrawmempool
POST gettxout
POST gettxoutproof
POST preciousblock
POST getmemoryinfo
POST getrpcinfo
POST help
POST uptime
POST getblocktemplate
POST getmininginfo
POST getnetworkhashps
POST combinepsbt
POST combinerawtransaction
POST converttopsbt
POST createpsbt
POST createrawtransaction
POST decodepsbt
POST decoderawtransaction
POST decodescript
POST finalizepsbt
POST fundrawtransaction
POST getrawtransaction
POST sendrawtransaction
POST signrawtransactionwithkey
POST testmempoolaccept
POST validateaddress
POST verifymessage
POST finalizeblock
POST getdsproof
POST getdsprooflist
POST gettxoutsetinfo
POST invalidateblock
POST parkblock
POST pruneblockchain
POST reconsiderblock
POST savemempool
POST scantxoutset
POST unparkblock
POST verifychain
POST verifytxoutproof
POST logging
POST stop
POST generate
POST generatetoaddress
POST getblocktemplatelight
POST prioritisetransaction
POST submitblock
POST submitblocklight
POST submitheader
POST addnode
POST clearbanned
POST disconnectnode
POST getaddednodeinfo
POST getconnectioncount
POST getexcessiveblock
POST getnettotals
POST getnetworkinfo
POST getnodeaddresses
POST getpeerinfo
POST listbanned
POST ping
POST setban
POST setexcessiveblock
POST setnetworkactive
POST createmultisig
POST estimatefee
POST signmessagewithprivkey
POST abortrescan
POST addmultisigaddress
POST createwallet
POST dumpprivkey
POST dumpwallet
POST encryptwallet
POST getaddressesbylabel
POST getaddressinfo
POST getbalance
POST getbalances
POST getnewaddress
POST getrawchangeaddress
POST getreceivedbyaddress
POST getunconfirmedbalance
POST getwalletinfo
POST importaddress
POST importmulti
POST importprivkey
POST importprunedfunds
POST importpubkey
POST importwallet
POST keypoolrefill
POST listaddressgroupings
POST listlabels
POST listlockunspent
POST listsinceblock
POST listtransactions
POST listunspent
POST listwalletdir
POST listwallets
POST loadwallet
POST lockunspent
POST removeprunedfunds
POST rescanblockchain
POST sendmany
POST setlabel
POST settxfee
POST setwalletflag
POST signmessage
POST signrawtransactionwithwallet
POST unloadwallet
POST walletcreatefundedpsbt
POST walletprocesspsbt
POST sethdseed
POST sendtoaddress
Nodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitNodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitNodes
Shared Nodes Dedicated Nodes Node Cluster Tracker Pricing Blockchain Development Documentation SLAPartnerships
Media KitPartnerships
Media KitFeel Free to Reach Out Anytime! 👋
FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Demo Request
Other
TEXT MESSAGE
0/300
KakaoTalk