1.4.4 • Published 3 years ago
ravencore-rpc v1.4.4
Ravencoin RPC
Documentation Website
A client library to connect to Ravencoin Core RPC in JavaScript.
A Ravenite module for ravencoin.
Getting Started
# Using npm
npm install @ravenite/ravencoin-rpc
# Using yarn
yarn add @ravenite/ravencoin-rpc
Usage
import Client from '@ravenite/ravencoin-rpc';
const client = new Client({
url: 'http://127.0.0.1:9050',
username: 'username',
password: 'password',
});
client.assets.listAssets().then(assets => {
console.log('assets', assets);
});
Examples and Documentation
See documentation for developer guides.
License
Code released under the MIT license.
Development
Tested method parameters
Assets
- issue
- issueUnique
- listMyAssets
- listAssetBalancesByAddress
- getAssetData
- listAddressesByAsset
- transferFromAddress
- transferFromAddresses
- transfer
- reissue
- listAssets
- getCacheInfo
- transferQualifier
- issueRestrictedAsset
- issueQualifierAsset
- reissueRestrictedAsset
- addTagToAddress
- removeTagFromAddress
- freezeAddress
- unfreezeAddress
- freezerestrictedasset
- unfreezeRestrictedAsset
- listAddressesForTag
- listTagsForAddress
- listAddressRestrictions
- listGlobalRestrictions
- getVerifierString
- checkAddressTag
- checkAddressRestriction
- checkGlobalRestriction
- isValidVerifierString
- getSnapshot
- purgeSnapshot
Blockchain
- clearMempool
- getBlockchainInfo
- getChainTxStats
- getBestBlockHash
- getBlockCount
- getBlock
- decodeBlock
- getBlockDeltas
- getBlockHashes
- getBlockHash
- getBlockHeader
- getChainTips
- getDifficulty
- getMempoolAncestors
- getMempoolDescendants
- getMempoolEntry
- getMempoolInfo
- getRawMempool
- GetTxOut
- getTxOutSetInfo
- pruneBlockchain
- saveMempool
- verifyChain
- preciousBlock
- invalidateBlock
- reconsiderBlock
- waitForNewBlock
- waitForBlock
- waitForBlockHeight
Messages
- viewAllMessages
- viewAllMessageChannels
- subscribeToChannel
- unsubscribeFromChannel
- sendMessage
- viewMyTaggedAddresses
- viewMyRestrictedAddresses
- clearMessages
Mining
- getNetworkHashPs
- getMiningInfo
- prioritiseTransaction
- getBlockTemplate
- submitBlock
- pprpcsb
- getKawpowHash
- getGenerate
- setGenerate
- generateToAddress
- estimateFee
- estimateSmartFee
- estimateRawFee
Misc
- getInfo
- getMemoryInfo
- validateAddress
- createMultisig
- verifyMessage
- signMessageWithPrivKey
- getAddressMempool
- getAddressUtxos
- getAddressDeltas
- getAddressTxIds
- getAddressBalance
- getSpentInfo
- setMockTime
- echo
- echojson
- logging
Net
- getConnectionCount
- ping
- getPeerInfo
- addNode
- disconnectNode
- getAddedNodeInfo
- getNetTotals
- getNetworkInfo
- setBan
- listBanned
- clearBanned
- setNetworkActive
- testGetAssetData
Raw Transactions
- getRawTransaction
- createRawTransaction
- decodeRawTransaction
- decodeScript
- sendRawTransaction
- combineRawTransaction
- signRawTransaction
- testMempoolAccept
- getTxOutProof
- verifyTxOutProof
Rewards
- requestSnapshot
- getSnapshotRequest
- listSnapshotRequests
- cancelSnapshotRequest
- distributeReward
- getDistributeStatus