New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image
dash

DASH

POST

GET

attention-sign-fillabandontransactionattention-sign-fillabortrescanattention-sign-filladdmultisigaddressattention-sign-filladdnodeattention-sign-fillbackupwalletattention-sign-fillbls_fromsecretattention-sign-fillbls_generateattention-sign-fillclearbannedattention-sign-fillcoinjoinattention-sign-fillcreatemultisigattention-sign-fillcreatewalletattention-sign-filldebugattention-sign-filldisconnectnodeattention-sign-filldumphdinfoattention-sign-filldumpprivkeyattention-sign-filldumpwalletattention-sign-fillencryptwalletattention-sign-fillfundrawtransactionattention-sign-fillgenerateattention-sign-fillgeneratetoaddressattention-sign-fillgetaddednodeinfoattention-sign-fillgetaddressbalanceattention-sign-fillgetaddressdeltasattention-sign-fillgetaddressesbylabelattention-sign-fillgetaddressinfoattention-sign-fillgetaddressmempoolattention-sign-fillgetaddresstxidsattention-sign-fillgetaddressutxosattention-sign-fillgetbalanceattention-sign-fillgetconnectioncountattention-sign-fillgetmemoryinfoattention-sign-fillgetnettotalsattention-sign-fillgetnetworkinfoattention-sign-fillgetnewaddressattention-sign-fillgetpeerinfoattention-sign-fillgetrawchangeaddressattention-sign-fillgetreceivedbyaddressattention-sign-fillgetreceivedbylabelattention-sign-fillgettransactionattention-sign-fillgetunconfirmedbalanceattention-sign-fillgetwalletinfoattention-sign-fillgobject_list-preparedattention-sign-fillgobject_prepareattention-sign-fillgobject_submitattention-sign-fillgobject_vote-aliasattention-sign-fillgobject_vote-confattention-sign-fillgobject_vote-manyattention-sign-fillgobjectattention-sign-fillimportaddressattention-sign-fillimportelectrumwalletattention-sign-fillimportmultiattention-sign-fillimportprivkeyattention-sign-fillimportprunedfundsattention-sign-fillimportpubkeyattention-sign-fillimportwalletattention-sign-fillkeepassattention-sign-fillkeypoolrefillattention-sign-filllistaddressbalancesattention-sign-filllistaddressgroupingsattention-sign-filllistbannedattention-sign-filllistlabelsattention-sign-filllistlockunspentattention-sign-filllistreceivedbyaddressattention-sign-filllistreceivedbylabelattention-sign-filllistsinceblockattention-sign-filllisttransactionsattention-sign-filllistunspentattention-sign-filllistwalletsattention-sign-fillloadwalletattention-sign-filllockunspentattention-sign-fillloggingattention-sign-fillmasternode_currentattention-sign-fillmasternode_outputsattention-sign-fillmasternode_winnerattention-sign-fillpingattention-sign-fillprioritisetransactionattention-sign-fillprotx_diffattention-sign-fillprotx_infoattention-sign-fillprotx_listattention-sign-fillprotx_register_fundattention-sign-fillprotx_register_prepareattention-sign-fillprotx_register_submitattention-sign-fillprotx_registerattention-sign-fillprotx_update_registrarattention-sign-fillprotx_update_serviceattention-sign-fillpruneblockchainattention-sign-fillquorum_dkgstatusattention-sign-fillquorum_getrecsigattention-sign-fillquorum_hasrecsigattention-sign-fillquorum_infoattention-sign-fillquorum_isconflictingattention-sign-fillquorum_listattention-sign-fillquorum_memberofattention-sign-fillquorum_selectquorumattention-sign-fillquorum_signattention-sign-fillquorum_verifyattention-sign-fillremoveprunedfundsattention-sign-fillrescanblockchainattention-sign-fillsavemempoolattention-sign-fillsendmanyattention-sign-fillsendtoaddressattention-sign-fillsetbanattention-sign-fillsetcoinjoinamountattention-sign-fillsetcoinjoinroundsattention-sign-fillsetlabelattention-sign-fillsetnetworkactiveattention-sign-fillsettxfeeattention-sign-fillsignmessageattention-sign-fillsignmessagewithprivkeyattention-sign-fillsignrawtransactionattention-sign-fillsignrawtransactionwithwalletattention-sign-fillstopattention-sign-fillsubmitblockattention-sign-fillunloadwalletattention-sign-fillupgradetohdattention-sign-fillverifychainlockattention-sign-fillverifyislockattention-sign-fillvoterawattention-sign-fillwalletlockattention-sign-fillwalletpassphraseattention-sign-fillwalletpassphrasechange
chevron-right

Last updated on January 1, 1970

3 min read

Method importmulti undefined ()
connect with JSON-RPC protocol

importmulti

info-circle-fill

Method not allowed

info-circle-fill

Imports addresses or scripts (with private keys, public keys, or P2SHredeem scripts) and optionally performs the minimum necessary rescan forall imports.

Parameters

Imports - array

An array of JSON objects, each one being an address or script to be imported.

Option - object

Optional.

JSON object with options regarding the import.

Request

curl --location --request POST 'https://dash.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "importmulti",
"params": [[{"name": "Import", "type": "object", "description": ["A JSON object describing a particular import."], "value": [{"name": "scriptPubKey", "type": "string (hex)", "description": ["Optional.", "The script (string) to be imported. Must have either this field or address below."], "value": null}, {"name": "address", "type": "string (base58)", "description": ["Optional.", "The P2PKH or P2SH address to be imported. Must have either this field or scriptPubKey above."], "value": null}, {"name": "timestamp", "type": "number (int) / string", "description": ["The creation time of the key in Unix epoch time or the string \u201cnow\u201d to substitute the current synced block chain time. The timestamp of the oldest key will determine how far back block chain rescans need to begin.", "Specify now to bypass scanning for keys which are known to never have been used.", "Specify 0 to scan the entire block chain.", "Blocks up to 2 hours before the earliest key creation time will be scanned."], "value": null}, {"name": "redeemscript", "type": "string", "description": ["Optional.", "A redeem script. Only allowed if either the address field is a P2SH address or the scriptPubKey field is a P2SH scriptPubKey."], "value": null}, {"name": "pubkeys", "type": "array", "description": ["Optional.", "Array of strings giving pubkeys that must occur in the scriptPubKey or redeemscript."], "value": null}, {"name": "keys", "type": "array", "description": ["Optional.", "Array of strings giving private keys whose corresponding public keys must occur in the scriptPubKey or redeemscript."], "value": null}, {"name": "internal", "type": "bool", "description": ["Optional.", "Stating whether matching outputs should be treated as change rather than incoming payments. The default is false."], "value": null}, {"name": "watchonly", "type": "bool", "description": ["Optional.", "Stating whether matching outputs should be considered watched even when they're not spendable. This is only allowed if keys are empty. The default is false."], "value": null}, {"name": "label", "type": "string", "description": ["Optional.", "Label to assign to the address, only allowed with internal set to false. The default is an empty string (\u201c\u201d)."], "value": null}]}], [{"name": "rescan", "type": "bool", "description": ["Optional.", "Set to true (the default) to rescan the entire local block chain for transactions affecting any imported address or script. Set to false to not rescan after the import.", "Rescanning may take a considerable amount of time and may require re-downloading blocks if using block chain pruning."], "value": null}]],
"id": "getblock.io"}'

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}
banner icon

Start Building with GetBlock RPCs for Free