Back to the main page
Adds something to bloom filter
name
type
description
args.originalFilter
string
Original bloom filter
args.element
string
Element to add to bloom filter
name
type
description
headers
promise (boolean)
Returns a boolean promise indicating whether it was added or not
Clears bloom filter
name
type
description
args.filter
string
Bloom filter that you want to clear
name
type
description
headers
promise (boolean)
Returns a boolean promise indicating whether it was cleared or not
Estimates transaction fee based on the size of number of blocks.
name
type
description
args.nBlocks
number
Number of blocks for fee estimate
name
type
description
estimatedFee
promise (number)
Promise containing fee in haks per kilobyte
Finds data for blocks given a bloom filter.
name
type
description
args.filter
string
A bloom filter
name
type
description
headers
object
Returns an obj containing block headers
Generates blocks on demand for regression tests.
name
type
description
args.amount
number
Amount of blocks to generate
name
type
description
blockHashes
promise (string array)
Returns a promise containing strings of block hashes
Returns an address summary given an address.
name
type
description
args.address
string or string array
address or multiple addresses
args.noTxList
boolean
set true if no list txs needed (opt.)
args.from
number
start of range (opt.)
args.to
number
end of range (opt.)
args.fromHeight
number
which height to start from (opt.)
args.toHeight
number
which height to end (opt.)
name
type
description
addressSummary
promise (object)
Returns a promise containing an obj with summary details
Returns total amount of haks received by an address.
name
type
description
args.address
string or string array
address or multiple addresses
name
type
description
totalReceived
promise (number)
Number of haks received by address
Returns total amount of haks sent by an address.
name
type
description
args.address
string or string array
address or multiple addresses
name
type
description
totalSent
promise (number)
number of haks sent by address
getAddressUnconfirmedBalance
Returns total unconfirmed balance for a given address.
name
type
description
args.address
string or string array
address or multiple addresses
name
type
description
unconfirmedBalance
promise (number)
an address's unconfirmed balance
Returns calculated balance for an address.
name
type
description
args.address
string or string array
address or multiple addresses
name
type
description
calcBalance
promise (number)
promise containing calculated balance
Returns best block hash (hash of the chaintip)
takes no arguments
name
type
description
blockHash
promise (string)
hash of chaintip
Returns best block height
takes no arguments
name
type
description
blockHeight
promise (number)
best seen block height
Returns block hash for a given height.
name
type
description
args.height
number
block height
name
type
description
blockHash
promise (string)
promise containing a string of a block hash
getBlockHeaders
Returns block headers
name
type
description
args.offset
number
block height starting point
args.limit
number
number of block headers to return
name
type
description
blockHeaders
promise (obj array)
promise containing an array of block headers
Returns info for blocks.
name
type
description
args.blockDate
string
Starting date for blocks to get
args.limit
number
Number of blocks to return
name
type
description
blocks
promise (obj array)
array of block objs
getHistoricBlockchainDataSyncStatus
Returns historic blockchain data sync status.
Takes no arguments
name
type
description
historicStatus
promise (obj)
object containing historical sync status
Returns historic blockchain data sync status.
Takes no arguments
name
type
description
mempoolInfo
promise (obj)
object containing mempool info
Returns masternode list.
Takes no arguments
name
type
description
mnList
promise (obj array)
an array of masternodes
needs definition
name
type
description
packet
string
ST Packet object serialized using CBOR
name
type
description
packet
string
ST Packet object serialized using CBOR
Returns peer data sync status.
Takes no arguments
name
type
description
peerDataSyncStatus
promise (obj)
object containing peer data sync status
Returns raw block given block hash.
name
type
description
args.blockHash
string
block hash
name
type
description
rawBlock
promise (obj)
object containing the raw block details
Returns block headers.
name
type
description
args.filter
string
bloom filter
name
type
description
blockHeaders
object
object containing block headers
Returns tranasction for the given hash.
name
type
description
args.txid
string
transaction id
name
type
description
tx
promise (obj)
object containing transaction info
Returns all transactions for a given address.
name
type
description
args.address
string or string array
address or multiple addresses
args.from
number
start of range (opt.)
args.to
number
end of range (opt.)
args.fromHeight
number
which height to start from (opt.)
args.toHeight
number
which height to end (opt.)
name
type
description
addressTxs
promise (obj array)
array containing tx objects for an address
Returns unspent transaction outputs for a given address.
name
type
description
args.address
string or string array
address or multiple addresses
args.from
number
start of range (opt.)
args.to
number
end of range (opt.)
args.fromHeight
number
which height to start from (opt.)
args.toHeight
number
which height to end (opt.)
name
type
description
utxo
promise (obj array)
an array containing unspent transaction objs
Loads bloom filter.
name
type
description
args.filter
string
bloom filter
name
type
description
filterLoaded?
promise (boolean)
returns boolean depending on load status
Sends raw instant send transaction and returns the transaction id.
name
type
description
args.rawIxTransaction
string
raw instant send transaction
name
type
description
transactionId
promise (string)
instant send transaction id
Sends raw transaction to the network.
name
type
description
args.rawTransaction
string
raw transaction to be sent
name
type
description
txId
promise (string)
string of transaction id
Returns user's Dap space.
name
type
description
args.contractId
string
User's contract Id
name
type
description
dapSpace
promise (obj)
User's dap space
Returns blockchain user
name
type
description
username OR regTxId
string
Either provide username or user's registration tx id
name
type
description
user
promise (obj)
object containing user info
Returns list of users after matching search criteria.
name
type
description
args.offset
number
starting amount of results to return
args.limit
number
limit of search results to return
args.pattern
string
search pattern
name
type
description
users
promise (obj w/ array of strings)
obj w/ totalResults found and an array of matching users
Sends raw state transition to the network.
name
type
description
args.rawStateTransition
Needs definition
needs definition
args.rawSTPacket
needs definition
needs definition
name
type
description
tsId
promise (string)
string of confirmed state transition transaction