Complete documentation for Suacoin's RPC API
Add an nrequired-to-sign multisignature address to the wallet. Requires a new wallet backup.
Each key is a Suacoin address or hex-encoded public key.
This functionality is only intended for use with non-watchonly addresses.
If 'label' is specified, assign address to that label.
Attempts to add or remove a node from the addnode list.
Or try a connection to a node once.
Nodes added using addnode (or -connect) are protected from DoS disconnection and are not required to be full nodes/support SegWit as other outbound peers are (though such peers will not be synced from).
Safely copies current wallet file to destination, which can be a directory or a path with filename.
Creates a multi-signature address with n signature of m keys required.
It returns a json object with the address and redeemScript.
Create a transaction spending the given inputs and creating new outputs.
Outputs can be addresses or data.
Returns hex-encoded raw transaction.
Note that the transaction's inputs are not signed, and it is not stored in the wallet or transmitted to the network.
Return a JSON object representing the serialized, hex-encoded transaction.
Reveals the private key corresponding to 'address'.
Then the importprivkey can be used with this output
Encrypts the wallet with 'passphrase'. This is for first time encryption.
After this, any calls that interact with private keys such as sending or signing will require the passphrase to be set prior to making these calls.
Returns the account associated with the given address.
Returns the current Suacoin address for receiving payments to this account.
Returns information about the given added node, or all added nodes (note that onetry addnodes are not listed here)
If dns is false, only a list of added nodes will be provided, otherwise connected information will also be available.
Returns the list of addresses for the given account.
Returns the total available balance.
If [account] is not specified, returns the server's total available balance.
If [account] is specified, returns the balance in the account.
Returns details of a block with given block-hash.
Returns the height of the most-work fully-validated chain.
The genesis block has height 0.
Returns hash of block in best-block-chain at height provided.
Returns data needed to construct a block to work on.
For full specification, see BIPs 22, 23, 9, and 145:
https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki
https://github.com/bitcoin/bips/blob/master/bip-0023.mediawiki
https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki#getblocktemplate_changes
https://github.com/bitcoin/bips/blob/master/bip-0145.mediawiki