import * as Cmd from './Commands'; import { RpcRequest } from './RpcRequest'; import { RpcResponse } from './RpcResponse'; /** * Connection settings. */ export interface ConnectionSettings { /** * Protocol to use for the connection. * @default 'http' */ readonly protocol?: 'http' | 'https'; /** * IP address or hostname of the node to connect to. * @default 'localhost' */ readonly host?: string; /** * Port number of the node to connect to. * @default 8570 */ readonly port?: number; /** * Username to use for authentication. * @default 'multichainrpc' */ readonly username?: string; /** * Password to use for authentication. */ readonly password: string; } /** * Call signatures supported by [[RpcClient]] instances. */ export interface RpcClientInstance { /** * Sends a [[AddMultiSigAddress]] command to the node. * @param request JSON-RPC request for the *addmultisigaddress* command. * @returns A promise of the JSON-RPC response to the *addmultisigaddress* command. */ (request: Cmd.AddMultiSigAddressRequest): Promise; /** * Sends a [[AddNode]] command to the node. * @param request JSON-RPC request for the *addnode* command. * @returns A promise of the JSON-RPC response to the *addnode* command. */ (request: Cmd.AddNodeRequest): Promise; /** * Sends a [[AppendRawChange]] command to the node. * @param request JSON-RPC request for the *appendrawchange* command. * @returns A promise of the JSON-RPC response to the *appendrawchange* command. */ (request: Cmd.AppendRawChangeRequest): Promise; /** * Sends a [[AppendRawData]] command to the node. * @param request JSON-RPC request for the *appendrawdata* command. * @returns A promise of the JSON-RPC response to the *appendrawdata* command. */ (request: Cmd.AppendRawDataRequest): Promise; /** * Sends a [[AppendRawExchange]] command to the node. * @param request JSON-RPC request for the *appendrawexchange* command. * @returns A promise of the JSON-RPC response to the *appendrawexchange* command. */ (request: Cmd.AppendRawExchangeRequest): Promise; /** * Sends a [[AppendRawTransaction]] command to the node. * @param request JSON-RPC request for the *appendrawtransaction* command. * @returns A promise of the JSON-RPC response to the *appendrawtransaction* command. */ (request: Cmd.AppendRawTransactionRequest): Promise; /** * Sends a [[ApproveFrom]] command to the node. * @param request JSON-RPC request for the *approvefrom* command. * @returns A promise of the JSON-RPC response to the *approvefrom* command. */ (request: Cmd.ApproveFromRequest): Promise; /** * Sends a [[BackupWallet]] command to the node. * @param request JSON-RPC request for the *backupwallet* command. * @returns A promise of the JSON-RPC response to the *backupwallet* command. */ (request: Cmd.BackupWalletRequest): Promise; /** * Sends a [[ClearMemPool]] command to the node. * @param request JSON-RPC request for the *clearmempool* command. * @returns A promise of the JSON-RPC response to the *clearmempool* command. */ (request: Cmd.ClearMemPoolRequest): Promise; /** * Sends a [[CombineUnspent]] command to the node. * @param request JSON-RPC request for the *combineunspent* command. * @returns A promise of the JSON-RPC response to the *combineunspent* command. */ (request: Cmd.CombineUnspentRequest): Promise; /** * Sends a [[CompleteRawExchange]] command to the node. * @param request JSON-RPC request for the *completerawexchange* command. * @returns A promise of the JSON-RPC response to the *completerawexchange* command. */ (request: Cmd.CompleteRawExchangeRequest): Promise; /** * Sends a [[Create]] command to the node. * @param request JSON-RPC request for the *create* command. * @returns A promise of the JSON-RPC response to the *create* command. */ (request: Cmd.CreateRequest): Promise; /** * Sends a [[CreateFrom]] command to the node. * @param request JSON-RPC request for the *createfrom* command. * @returns A promise of the JSON-RPC response to the *createfrom* command. */ (request: Cmd.CreateFromRequest): Promise; /** * Sends a [[CreateKeyPairs]] command to the node. * @param request JSON-RPC request for the *createkeypairs* command. * @returns A promise of the JSON-RPC response to the *createkeypairs* command. */ (request: Cmd.CreateKeyPairsRequest): Promise; /** * Sends a [[CreateMultiSig]] command to the node. * @param request JSON-RPC request for the *createmultisig* command. * @returns A promise of the JSON-RPC response to the *createmultisig* command. */ (request: Cmd.CreateMultiSigRequest): Promise; /** * Sends a [[CreateRawExchange]] command to the node. * @param request JSON-RPC request for the *createrawexchange* command. * @returns A promise of the JSON-RPC response to the *createrawexchange* command. */ (request: Cmd.CreateRawExchangeRequest): Promise; /** * Sends a [[CreateRawSendFrom]] command to the node. * @param request JSON-RPC request for the *createrawsendfrom* command. * @returns A promise of the JSON-RPC response to the *createrawsendfrom* command. */ (request: Cmd.CreateRawSendFromRequest): Promise; /** * Sends a [[CreateRawTransaction]] command to the node. * @param request JSON-RPC request for the *createrawtransaction* command. * @returns A promise of the JSON-RPC response to the *createrawtransaction* command. */ (request: Cmd.CreateRawTransactionRequest): Promise; /** * Sends a [[DecodeRawExchange]] command to the node. * @param request JSON-RPC request for the *decoderawexchange* command. * @returns A promise of the JSON-RPC response to the *decoderawexchange* command. */ (request: Cmd.DecodeRawExchangeRequest): Promise; /** * Sends a [[DecodeRawTransaction]] command to the node. * @param request JSON-RPC request for the *decoderawtransaction* command. * @returns A promise of the JSON-RPC response to the *decoderawtransaction* command. */ (request: Cmd.DecodeRawTransactionRequest): Promise; /** * Sends a [[DisableRawTransaction]] command to the node. * @param request JSON-RPC request for the *disablerawtransaction* command. * @returns A promise of the JSON-RPC response to the *disablerawtransaction* command. */ (request: Cmd.DisableRawTransactionRequest): Promise; /** * Sends a [[DumpPrivKey]] command to the node. * @param request JSON-RPC request for the *dumpprivkey* command. * @returns A promise of the JSON-RPC response to the *dumpprivkey* command. */ (request: Cmd.DumpPrivKeyRequest): Promise; /** * Sends a [[DumpWallet]] command to the node. * @param request JSON-RPC request for the *dumpwallet* command. * @returns A promise of the JSON-RPC response to the *dumpwallet* command. */ (request: Cmd.DumpWalletRequest): Promise; /** * Sends a [[EncryptWallet]] command to the node. * @param request JSON-RPC request for the *encryptwallet* command. * @returns A promise of the JSON-RPC response to the *encryptwallet* command. */ (request: Cmd.EncryptWalletRequest): Promise; /** * Sends a [[GetAddedNodeInfo]] command to the node. * @param request JSON-RPC request for the *getaddednodeinfo* command. * @returns A promise of the JSON-RPC response to the *getaddednodeinfo* command. */ (request: Cmd.GetAddedNodeInfoRequest): Promise; /** * Sends a [[GetAddressBalances]] command to the node. * @param request JSON-RPC request for the *getaddressbalances* command. * @returns A promise of the JSON-RPC response to the *getaddressbalances* command. */ (request: Cmd.GetAddressBalancesRequest): Promise; /** * Sends a [[GetAddressTransaction]] command to the node. * @param request JSON-RPC request for the *getaddresstransaction* command. * @returns A promise of the JSON-RPC response to the *getaddresstransaction* command. */ (request: Cmd.GetAddressTransactionRequest): Promise; /** * Sends a [[GetAddresses]] command to the node. * @param request JSON-RPC request for the *getaddresses* command. * @returns A promise of the JSON-RPC response to the *getaddresses* command. */ (request: Cmd.GetAddressesRequest): Promise; /** * Sends a [[GetAssetTransaction]] command to the node. * @param request JSON-RPC request for the *getassettransaction* command. * @returns A promise of the JSON-RPC response to the *getassettransaction* command. */ (request: Cmd.GetAssetTransactionRequest): Promise; /** * Sends a [[GetBlock]] command to the node. * @param request JSON-RPC request for the *getblock* command. * @returns A promise of the JSON-RPC response to the *getblock* command. */ (request: Cmd.GetBlockRequest): Promise; /** * Sends a [[GetBlockHash]] command to the node. * @param request JSON-RPC request for the *getblockhash* command. * @returns A promise of the JSON-RPC response to the *getblockhash* command. */ (request: Cmd.GetBlockHashRequest): Promise; /** * Sends a [[GetBlockchainInfo]] command to the node. * @param request JSON-RPC request for the *getblockchaininfo* command. * @returns A promise of the JSON-RPC response to the *getblockchaininfo* command. */ (request: Cmd.GetBlockchainInfoRequest): Promise; /** * Sends a [[GetBlockchainParams]] command to the node. * @param request JSON-RPC request for the *getblockchainparams* command. * @returns A promise of the JSON-RPC response to the *getblockchainparams* command. */ (request: Cmd.GetBlockchainParamsRequest): Promise; /** * Sends a [[GetInfo]] command to the node. * @param request JSON-RPC request for the *getinfo* command. * @returns A promise of the JSON-RPC response to the *getinfo* command. */ (request: Cmd.GetInfoRequest): Promise; /** * Sends a [[GetMemPoolInfo]] command to the node. * @param request JSON-RPC request for the *getmempoolinfo* command. * @returns A promise of the JSON-RPC response to the *getmempoolinfo* command. */ (request: Cmd.GetMemPoolInfoRequest): Promise; /** * Sends a [[GetMiningInfo]] command to the node. * @param request JSON-RPC request for the *getmininginfo* command. * @returns A promise of the JSON-RPC response to the *getmininginfo* command. */ (request: Cmd.GetMiningInfoRequest): Promise; /** * Sends a [[GetMultiBalances]] command to the node. * @param request JSON-RPC request for the *getmultibalances* command. * @returns A promise of the JSON-RPC response to the *getmultibalances* command. */ (request: Cmd.GetMultiBalancesRequest): Promise; /** * Sends a [[GetNetworkInfo]] command to the node. * @param request JSON-RPC request for the *getnetworkinfo* command. * @returns A promise of the JSON-RPC response to the *getnetworkinfo* command. */ (request: Cmd.GetNetworkInfoRequest): Promise; /** * Sends a [[GetNewAddress]] command to the node. * @param request JSON-RPC request for the *getnewaddress* command. * @returns A promise of the JSON-RPC response to the *getnewaddress* command. */ (request: Cmd.GetNewAddressRequest): Promise; /** * Sends a [[GetPeerInfo]] command to the node. * @param request JSON-RPC request for the *getpeerinfo* command. * @returns A promise of the JSON-RPC response to the *getpeerinfo* command. */ (request: Cmd.GetPeerInfoRequest): Promise; /** * Sends a [[GetRawMemPool]] command to the node. * @param request JSON-RPC request for the *getrawmempool* command. * @returns A promise of the JSON-RPC response to the *getrawmempool* command. */ (request: Cmd.GetRawMemPoolRequest): Promise; /** * Sends a [[GetRawTransaction]] command to the node. * @param request JSON-RPC request for the *getrawtransaction* command. * @returns A promise of the JSON-RPC response to the *getrawtransaction* command. */ (request: Cmd.GetRawTransactionRequest): Promise; /** * Sends a [[GetRuntimeParams]] command to the node. * @param request JSON-RPC request for the *getruntimeparams* command. * @returns A promise of the JSON-RPC response to the *getruntimeparams* command. */ (request: Cmd.GetRuntimeParamsRequest): Promise; /** * Sends a [[GetStreamItem]] command to the node. * @param request JSON-RPC request for the *getstreamitem* command. * @returns A promise of the JSON-RPC response to the *getstreamitem* command. */ (request: Cmd.GetStreamItemRequest): Promise; /** * Sends a [[GetTotalBalances]] command to the node. * @param request JSON-RPC request for the *gettotalbalances* command. * @returns A promise of the JSON-RPC response to the *gettotalbalances* command. */ (request: Cmd.GetTotalBalancesRequest): Promise; /** * Sends a [[GetTxOut]] command to the node. * @param request JSON-RPC request for the *gettxout* command. * @returns A promise of the JSON-RPC response to the *gettxout* command. */ (request: Cmd.GetTxOutRequest): Promise; /** * Sends a [[GetTxOutData]] command to the node. * @param request JSON-RPC request for the *gettxoutdata* command. * @returns A promise of the JSON-RPC response to the *gettxoutdata* command. */ (request: Cmd.GetTxOutDataRequest): Promise; /** * Sends a [[GetWalletInfo]] command to the node. * @param request JSON-RPC request for the *getwalletinfo* command. * @returns A promise of the JSON-RPC response to the *getwalletinfo* command. */ (request: Cmd.GetWalletInfoRequest): Promise; /** * Sends a [[GetWalletTransaction]] command to the node. * @param request JSON-RPC request for the *getwallettransaction* command. * @returns A promise of the JSON-RPC response to the *getwallettransaction* command. */ (request: Cmd.GetWalletTransactionRequest): Promise; /** * Sends a [[Grant]] command to the node. * @param request JSON-RPC request for the *grant* command. * @returns A promise of the JSON-RPC response to the *grant* command. */ (request: Cmd.GrantRequest): Promise; /** * Sends a [[GrantFrom]] command to the node. * @param request JSON-RPC request for the *grantfrom* command. * @returns A promise of the JSON-RPC response to the *grantfrom* command. */ (request: Cmd.GrantFromRequest): Promise; /** * Sends a [[GrantWithData]] command to the node. * @param request JSON-RPC request for the *grantwithdata* command. * @returns A promise of the JSON-RPC response to the *grantwithdata* command. */ (request: Cmd.GrantWithDataRequest): Promise; /** * Sends a [[GrantWithDataFrom]] command to the node. * @param request JSON-RPC request for the *grantwithdatafrom* command. * @returns A promise of the JSON-RPC response to the *grantwithdatafrom* command. */ (request: Cmd.GrantWithDataFromRequest): Promise; /** * Sends a [[Help]] command to the node. * @param request JSON-RPC request for the *help* command. * @returns A promise of the JSON-RPC response to the *help* command. */ (request: Cmd.HelpRequest): Promise; /** * Sends a [[ImportAddress]] command to the node. * @param request JSON-RPC request for the *importaddress* command. * @returns A promise of the JSON-RPC response to the *importaddress* command. */ (request: Cmd.ImportAddressRequest): Promise; /** * Sends a [[ImportPrivKey]] command to the node. * @param request JSON-RPC request for the *importprivkey* command. * @returns A promise of the JSON-RPC response to the *importprivkey* command. */ (request: Cmd.ImportPrivKeyRequest): Promise; /** * Sends a [[ImportWallet]] command to the node. * @param request JSON-RPC request for the *importwallet* command. * @returns A promise of the JSON-RPC response to the *importwallet* command. */ (request: Cmd.ImportWalletRequest): Promise; /** * Sends a [[Issue]] command to the node. * @param request JSON-RPC request for the *issue* command. * @returns A promise of the JSON-RPC response to the *issue* command. */ (request: Cmd.IssueRequest): Promise; /** * Sends a [[IssueFrom]] command to the node. * @param request JSON-RPC request for the *issuefrom* command. * @returns A promise of the JSON-RPC response to the *issuefrom* command. */ (request: Cmd.IssueFromRequest): Promise; /** * Sends a [[IssueMore]] command to the node. * @param request JSON-RPC request for the *issuemore* command. * @returns A promise of the JSON-RPC response to the *issuemore* command. */ (request: Cmd.IssueMoreRequest): Promise; /** * Sends a [[IssueMoreFrom]] command to the node. * @param request JSON-RPC request for the *issuemorefrom* command. * @returns A promise of the JSON-RPC response to the *issuemorefrom* command. */ (request: Cmd.IssueMoreFromRequest): Promise; /** * Sends a [[ListAddressTransactions]] command to the node. * @param request JSON-RPC request for the *listaddresstransactions* command. * @returns A promise of the JSON-RPC response to the *listaddresstransactions* command. */ (request: Cmd.ListAddressTransactionsRequest): Promise; /** * Sends a [[ListAddresses]] command to the node. * @param request JSON-RPC request for the *listaddresses* command. * @returns A promise of the JSON-RPC response to the *listaddresses* command. */ (request: Cmd.ListAddressesRequest): Promise; /** * Sends a [[ListAssetTransactions]] command to the node. * @param request JSON-RPC request for the *listassettransactions* command. * @returns A promise of the JSON-RPC response to the *listassettransactions* command. */ (request: Cmd.ListAssetTransactionsRequest): Promise; /** * Sends a [[ListAssets]] command to the node. * @param request JSON-RPC request for the *listassets* command. * @returns A promise of the JSON-RPC response to the *listassets* command. */ (request: Cmd.ListAssetsRequest): Promise; /** * Sends a [[ListBlocks]] command to the node. * @param request JSON-RPC request for the *listblocks* command. * @returns A promise of the JSON-RPC response to the *listblocks* command. */ (request: Cmd.ListBlocksRequest): Promise; /** * Sends a [[ListLockUnspent]] command to the node. * @param request JSON-RPC request for the *listlockunspent* command. * @returns A promise of the JSON-RPC response to the *listlockunspent* command. */ (request: Cmd.ListLockUnspentRequest): Promise; /** * Sends a [[ListPermissions]] command to the node. * @param request JSON-RPC request for the *listpermissions* command. * @returns A promise of the JSON-RPC response to the *listpermissions* command. */ (request: Cmd.ListPermissionsRequest): Promise; /** * Sends a [[ListStreamBlockItems]] command to the node. * @param request JSON-RPC request for the *liststreamblockitems* command. * @returns A promise of the JSON-RPC response to the *liststreamblockitems* command. */ (request: Cmd.ListStreamBlockItemsRequest): Promise; /** * Sends a [[ListStreamItems]] command to the node. * @param request JSON-RPC request for the *liststreamitems* command. * @returns A promise of the JSON-RPC response to the *liststreamitems* command. */ (request: Cmd.ListStreamItemsRequest): Promise; /** * Sends a [[ListStreamKeyItems]] command to the node. * @param request JSON-RPC request for the *liststreamkeyitems* command. * @returns A promise of the JSON-RPC response to the *liststreamkeyitems* command. */ (request: Cmd.ListStreamKeyItemsRequest): Promise; /** * Sends a [[ListStreamKeys]] command to the node. * @param request JSON-RPC request for the *liststreamkeys* command. * @returns A promise of the JSON-RPC response to the *liststreamkeys* command. */ (request: Cmd.ListStreamKeysRequest): Promise; /** * Sends a [[ListStreamPublisherItems]] command to the node. * @param request JSON-RPC request for the *liststreampublisheritems* command. * @returns A promise of the JSON-RPC response to the *liststreampublisheritems* command. */ (request: Cmd.ListStreamPublisherItemsRequest): Promise; /** * Sends a [[ListStreamPublishers]] command to the node. * @param request JSON-RPC request for the *liststreampublishers* command. * @returns A promise of the JSON-RPC response to the *liststreampublishers* command. */ (request: Cmd.ListStreamPublishersRequest): Promise; /** * Sends a [[ListStreams]] command to the node. * @param request JSON-RPC request for the *liststreams* command. * @returns A promise of the JSON-RPC response to the *liststreams* command. */ (request: Cmd.ListStreamsRequest): Promise; /** * Sends a [[ListUnspent]] command to the node. * @param request JSON-RPC request for the *listunspent* command. * @returns A promise of the JSON-RPC response to the *listunspent* command. */ (request: Cmd.ListUnspentRequest): Promise; /** * Sends a [[ListUpgrades]] command to the node. * @param request JSON-RPC request for the *listupgrades* command. * @returns A promise of the JSON-RPC response to the *listupgrades* command. */ (request: Cmd.ListUpgradesRequest): Promise; /** * Sends a [[ListWalletTransactions]] command to the node. * @param request JSON-RPC request for the *listwallettransactions* command. * @returns A promise of the JSON-RPC response to the *listwallettransactions* command. */ (request: Cmd.ListWalletTransactionsRequest): Promise; /** * Sends a [[LockUnspent]] command to the node. * @param request JSON-RPC request for the *lockunspent* command. * @returns A promise of the JSON-RPC response to the *lockunspent* command. */ (request: Cmd.LockUnspentRequest): Promise; /** * Sends a [[Pause]] command to the node. * @param request JSON-RPC request for the *pause* command. * @returns A promise of the JSON-RPC response to the *pause* command. */ (request: Cmd.PauseRequest): Promise; /** * Sends a [[Ping]] command to the node. * @param request JSON-RPC request for the *ping* command. * @returns A promise of the JSON-RPC response to the *ping* command. */ (request: Cmd.PingRequest): Promise; /** * Sends a [[PrepareLockUnspent]] command to the node. * @param request JSON-RPC request for the *preparelockunspent* command. * @returns A promise of the JSON-RPC response to the *preparelockunspent* command. */ (request: Cmd.PrepareLockUnspentRequest): Promise; /** * Sends a [[PrepareLockUnspentFrom]] command to the node. * @param request JSON-RPC request for the *preparelockunspentfrom* command. * @returns A promise of the JSON-RPC response to the *preparelockunspentfrom* command. */ (request: Cmd.PrepareLockUnspentFromRequest): Promise; /** * Sends a [[Publish]] command to the node. * @param request JSON-RPC request for the *publish* command. * @returns A promise of the JSON-RPC response to the *publish* command. */ (request: Cmd.PublishRequest): Promise; /** * Sends a [[PublishFrom]] command to the node. * @param request JSON-RPC request for the *publishfrom* command. * @returns A promise of the JSON-RPC response to the *publishfrom* command. */ (request: Cmd.PublishFromRequest): Promise; /** * Sends a [[Resume]] command to the node. * @param request JSON-RPC request for the *resume* command. * @returns A promise of the JSON-RPC response to the *resume* command. */ (request: Cmd.ResumeRequest): Promise; /** * Sends a [[Revoke]] command to the node. * @param request JSON-RPC request for the *revoke* command. * @returns A promise of the JSON-RPC response to the *revoke* command. */ (request: Cmd.RevokeRequest): Promise; /** * Sends a [[RevokeFrom]] command to the node. * @param request JSON-RPC request for the *revokefrom* command. * @returns A promise of the JSON-RPC response to the *revokefrom* command. */ (request: Cmd.RevokeFromRequest): Promise; /** * Sends a [[Send]] command to the node. * @param request JSON-RPC request for the *send* command. * @returns A promise of the JSON-RPC response to the *send* command. */ (request: Cmd.SendRequest): Promise; /** * Sends a [[SendAsset]] command to the node. * @param request JSON-RPC request for the *sendasset* command. * @returns A promise of the JSON-RPC response to the *sendasset* command. */ (request: Cmd.SendAssetRequest): Promise; /** * Sends a [[SendAssetFrom]] command to the node. * @param request JSON-RPC request for the *sendassetfrom* command. * @returns A promise of the JSON-RPC response to the *sendassetfrom* command. */ (request: Cmd.SendAssetFromRequest): Promise; /** * Sends a [[SendFrom]] command to the node. * @param request JSON-RPC request for the *sendfrom* command. * @returns A promise of the JSON-RPC response to the *sendfrom* command. */ (request: Cmd.SendFromRequest): Promise; /** * Sends a [[SendRawTransaction]] command to the node. * @param request JSON-RPC request for the *sendrawtransaction* command. * @returns A promise of the JSON-RPC response to the *sendrawtransaction* command. */ (request: Cmd.SendRawTransactionRequest): Promise; /** * Sends a [[SendWithData]] command to the node. * @param request JSON-RPC request for the *sendwithdata* command. * @returns A promise of the JSON-RPC response to the *sendwithdata* command. */ (request: Cmd.SendWithDataRequest): Promise; /** * Sends a [[SendWithDataFrom]] command to the node. * @param request JSON-RPC request for the *sendwithdatafrom* command. * @returns A promise of the JSON-RPC response to the *sendwithdatafrom* command. */ (request: Cmd.SendWithDataFromRequest): Promise; /** * Sends a [[SetLastBlock]] command to the node. * @param request JSON-RPC request for the *setlastblock* command. * @returns A promise of the JSON-RPC response to the *setlastblock* command. */ (request: Cmd.SetLastBlockRequest): Promise; /** * Sends a [[SetRuntimeParam]] command to the node. * @param request JSON-RPC request for the *setruntimeparam* command. * @returns A promise of the JSON-RPC response to the *setruntimeparam* command. */ (request: Cmd.SetRuntimeParamRequest): Promise; /** * Sends a [[SignMessage]] command to the node. * @param request JSON-RPC request for the *signmessage* command. * @returns A promise of the JSON-RPC response to the *signmessage* command. */ (request: Cmd.SignMessageRequest): Promise; /** * Sends a [[SignRawTransaction]] command to the node. * @param request JSON-RPC request for the *signrawtransaction* command. * @returns A promise of the JSON-RPC response to the *signrawtransaction* command. */ (request: Cmd.SignRawTransactionRequest): Promise; /** * Sends a [[Stop]] command to the node. * @param request JSON-RPC request for the *stop* command. * @returns A promise of the JSON-RPC response to the *stop* command. */ (request: Cmd.StopRequest): Promise; /** * Sends a [[Subscribe]] command to the node. * @param request JSON-RPC request for the *subscribe* command. * @returns A promise of the JSON-RPC response to the *subscribe* command. */ (request: Cmd.SubscribeRequest): Promise; /** * Sends a [[Unsubscribe]] command to the node. * @param request JSON-RPC request for the *unsubscribe* command. * @returns A promise of the JSON-RPC response to the *unsubscribe* command. */ (request: Cmd.UnsubscribeRequest): Promise; /** * Sends a [[ValidateAddress]] command to the node. * @param request JSON-RPC request for the *validateaddress* command. * @returns A promise of the JSON-RPC response to the *validateaddress* command. */ (request: Cmd.ValidateAddressRequest): Promise; /** * Sends a [[VerifyMessage]] command to the node. * @param request JSON-RPC request for the *verifymessage* command. * @returns A promise of the JSON-RPC response to the *verifymessage* command. */ (request: Cmd.VerifyMessageRequest): Promise; /** * Sends a [[WalletLock]] command to the node. * @param request JSON-RPC request for the *walletlock* command. * @returns A promise of the JSON-RPC response to the *walletlock* command. */ (request: Cmd.WalletLockRequest): Promise; /** * Sends a [[WalletPassphrase]] command to the node. * @param request JSON-RPC request for the *walletpassphrase* command. * @returns A promise of the JSON-RPC response to the *walletpassphrase* command. */ (request: Cmd.WalletPassphraseRequest): Promise; /** * Sends a [[WalletPassphraseChange]] command to the node. * @param request JSON-RPC request for the *walletpassphrasechange* command. * @returns A promise of the JSON-RPC response to the *walletpassphrasechange* command. */ (request: Cmd.WalletPassphraseChangeRequest): Promise; /** * Sends a command to the node. * @param request JSON-RPC request for the command. * @returns A promise of the JSON-RPC response to the command. */ (request: RpcRequest): Promise; } /** * Creates a JSON-RPC client to send commands to MultiChain. * @param settings Connection settings. * @returns A JSON-RPC client. */ export declare function RpcClient(settings: ConnectionSettings): RpcClientInstance;