@datafire/nebl v4.0.0
@datafire/nebl
Client library for Neblio REST API Suite
Installation and Usage
npm install --save @datafire/nebl
let nebl = require('@datafire/nebl').create({
username: "",
password: ""
});
.then(data => {
console.log(data);
});
Description
APIs for Interacting with NTP1 Tokens & The Neblio Blockchain
Actions
json_rpc
Call any Neblio RPC command from the Neblio API libraries. Useful for signing transactions with a local node and other functions. Will not work from a browser due to CORS restrictions. Requires a node to be running locally at 127.0.0.1
nebl.json_rpc({
"body": {
"jsonrpc": "",
"id": "",
"method": "",
"params": []
}
}, context)
Input
- input
object
- body required rpcRequest
Output
- output rpcResponse
getAddress
Returns NEBL address object containing information on a specific address
nebl.getAddress({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
- output getAddressResponse
getAddressBalance
Returns NEBL address balance in satoshis
nebl.getAddressBalance({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
- output getAddressBalanceResponse
getAddressTotalReceived
Returns total NEBL received by address in satoshis
nebl.getAddressTotalReceived({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
getAddressTotalSent
Returns total NEBL sent by address in satoshis
nebl.getAddressTotalSent({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
- output getAddressTotalSentResponse
getAddressUnconfirmedBalance
Returns NEBL address unconfirmed balance in satoshis
nebl.getAddressUnconfirmedBalance({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
getAddressUtxos
Returns information on each Unspent Transaction Output contained at an address
nebl.getAddressUtxos({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
- output getAddressUtxosResponse
getBlockIndex
Returns the block hash of a block at a given block index
nebl.getBlockIndex({
"blockindex": 0
}, context)
Input
- input
object
- blockindex required
number
: Block Index
- blockindex required
Output
- output getBlockIndexResponse
getBlock
Returns blockchain data for a given block based upon the block hash
nebl.getBlock({
"blockhash": ""
}, context)
Input
- input
object
- blockhash required
string
: Block Hash
- blockhash required
Output
- output getBlockResponse
getRawTx
Returns raw transaction hex representing a NEBL transaction
nebl.getRawTx({
"txid": ""
}, context)
Input
- input
object
- txid required
string
: Transaction ID
- txid required
Output
- output getRawTxResponse
getStatus
Utility API for calling several blockchain node functions - getInfo, getDifficulty, getBestBlockHash, getLastBlockHash
nebl.getStatus({}, context)
Input
- input
object
- q
string
: Function to call, getInfo, getDifficulty, getBestBlockHash, or getLastBlockHash
- q
Output
- output getStatusResponse
getSync
Returns information on the node's sync progress
nebl.getSync(null, context)
Input
This action has no parameters
Output
- output getSyncResponse
sendTx
Broadcasts a signed raw transaction to the network. If successful returns the txid of the broadcast trasnaction.
nebl.sendTx({
"body": {}
}, context)
Input
- input
object
- body required sendTxRequest
Output
- output broadcastTxResponse
getTx
Returns NEBL transaction object representing a NEBL transaction
nebl.getTx({
"txid": ""
}, context)
Input
- input
object
- txid required
string
: Transaction ID
- txid required
Output
- output getTxResponse
getTxs
Returns all transactions by block or address
nebl.getTxs({}, context)
Input
- input
object
- address
string
: Address - block
string
: Block Hash - pageNum
number
: Page number to display
- address
Output
- output getTxsResponse
getAddressInfo
Returns both NEBL and NTP1 token UTXOs held at the given address.
nebl.getAddressInfo({
"address": ""
}, context)
Input
- input
object
- address required
string
: Neblio Address to get information on.
- address required
Output
- output getAddressInfoResponse
broadcastTx
Broadcasts a signed raw transaction to the network. If successful returns the txid of the broadcast trasnaction.
nebl.broadcastTx({
"body": {
"txHex": ""
}
}, context)
Input
- input
object
- body required broadcastTxRequest
Output
- output broadcastTxResponse
burnToken
Builds an unsigned raw transaction that burns an NTP1 token on the Neblio blockchain.
nebl.burnToken({
"body": {
"fee": 0,
"burn": []
}
}, context)
Input
- input
object
- body required burnTokenRequest
Output
- output burnTokenResponse
issueToken
Builds an unsigned raw transaction that issues a new NTP1 token on the Neblio blockchain.
nebl.issueToken({
"body": {
"issueAddress": "",
"amount": 0,
"divisibility": 0,
"fee": 0,
"reissuable": true,
"transfer": []
}
}, context)
Input
- input
object
- body required issueTokenRequest
Output
- output issueTokenResponse
sendToken
Builds an unsigned raw transaction that sends an NTP1 token on the Neblio blockchain.
nebl.sendToken({
"body": {
"fee": 0,
"to": []
}
}, context)
Input
- input
object
- body required sendTokenRequest
Output
- output sendTokenResponse
getTokenHolders
Returns the the the addresses holding a token and how many tokens are held
nebl.getTokenHolders({
"tokenid": ""
}, context)
Input
- input
object
- tokenid required
string
: TokenId to request metadata for
- tokenid required
Output
- output getTokenHoldersResponse
getTokenId
Translates a token symbol to a tokenId if a token exists with that symbol on the network
nebl.getTokenId({
"tokensymbol": ""
}, context)
Input
- input
object
- tokensymbol required
string
: Token symbol
- tokensymbol required
Output
- output getTokenIdResponse
getTokenMetadata
Returns the metadata associated with a token.
nebl.getTokenMetadata({
"tokenid": ""
}, context)
Input
- input
object
- tokenid required
string
: TokenId to request metadata for - verbosity
number
: 0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses
- tokenid required
Output
- output getTokenMetadataResponse
getTokenMetadataOfUtxo
Returns the metadata associated with a token for that specific utxo instead of the issuance transaction.
nebl.getTokenMetadataOfUtxo({
"tokenid": "",
"utxo": ""
}, context)
Input
- input
object
- tokenid required
string
: TokenId to request metadata for - utxo required
string
: Specific UTXO to request metadata for - verbosity
number
: 0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses
- tokenid required
Output
- output getTokenMetadataResponse
getTransactionInfo
Returns detailed information regarding an NTP1 transaction.
nebl.getTransactionInfo({
"txid": ""
}, context)
Input
- input
object
- txid required
string
: Neblio txid to get information on.
- txid required
Output
- output getTransactionInfoResponse
testnet_getFaucet
Withdraw testnet NEBL to your Neblio Testnet address. By default amount is 1500000000 or 15 NEBL and has a max of 50 NEBL. Only 2 withdrawals allowed per 24 hour period.
nebl.testnet_getFaucet({
"address": ""
}, context)
Input
- input
object
- address required
string
: Your Neblio Testnet Address - amount
number
: Amount of NEBL to withdrawal in satoshis
- address required
Output
- output getFaucetResponse
testnet_getAddress
Returns NEBL address object containing information on a specific address
nebl.testnet_getAddress({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
- output getAddressResponse
testnet_getAddressBalance
Returns NEBL address balance in satoshis
nebl.testnet_getAddressBalance({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
- output getAddressBalanceResponse
testnet_getAddressTotalReceived
Returns total NEBL received by address in satoshis
nebl.testnet_getAddressTotalReceived({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
testnet_getAddressTotalSent
Returns total NEBL sent by address in satoshis
nebl.testnet_getAddressTotalSent({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
- output getAddressTotalSentResponse
testnet_getAddressUnconfirmedBalance
Returns NEBL address unconfirmed balance in satoshis
nebl.testnet_getAddressUnconfirmedBalance({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
testnet_getAddressUtxos
Returns information on each Unspent Transaction Output contained at an address
nebl.testnet_getAddressUtxos({
"address": ""
}, context)
Input
- input
object
- address required
string
: Address
- address required
Output
- output getAddressUtxosResponse
testnet_getBlockIndex
Returns the block hash of a block at a given block index
nebl.testnet_getBlockIndex({
"blockindex": 0
}, context)
Input
- input
object
- blockindex required
number
: Block Index
- blockindex required
Output
- output getBlockIndexResponse
testnet_getBlock
Returns blockchain data for a given block based upon the block hash
nebl.testnet_getBlock({
"blockhash": ""
}, context)
Input
- input
object
- blockhash required
string
: Block Hash
- blockhash required
Output
- output getBlockResponse
testnet_getRawTx
Returns raw transaction hex representing a NEBL transaction
nebl.testnet_getRawTx({
"txid": ""
}, context)
Input
- input
object
- txid required
string
: Transaction ID
- txid required
Output
- output getRawTxResponse
testnet_getStatus
Utility API for calling several blockchain node functions - getInfo, getDifficulty, getBestBlockHash, getLastBlockHash
nebl.testnet_getStatus({}, context)
Input
- input
object
- q
string
: Function to call, getInfo, getDifficulty, getBestBlockHash, or getLastBlockHash
- q
Output
- output getStatusResponse
testnet_getSync
Returns information on the node's sync progress
nebl.testnet_getSync(null, context)
Input
This action has no parameters
Output
- output getSyncResponse
testnet_sendTx
Broadcasts a signed raw transaction to the network. If successful returns the txid of the broadcast trasnaction.
nebl.testnet_sendTx({
"body": {}
}, context)
Input
- input
object
- body required sendTxRequest
Output
- output broadcastTxResponse
testnet_getTx
Returns NEBL transaction object representing a NEBL transaction
nebl.testnet_getTx({
"txid": ""
}, context)
Input
- input
object
- txid required
string
: Transaction ID
- txid required
Output
- output getTxResponse
testnet_getTxs
Returns all transactions by block or address
nebl.testnet_getTxs({}, context)
Input
- input
object
- address
string
: Address - block
string
: Block Hash - pageNum
number
: Page number to display
- address
Output
- output getTxsResponse
testnet_getAddressInfo
Returns both NEBL and NTP1 token UTXOs held at the given address.
nebl.testnet_getAddressInfo({
"address": ""
}, context)
Input
- input
object
- address required
string
: Neblio Address to get information on.
- address required
Output
- output getAddressInfoResponse
testnet_broadcastTx
Broadcasts a signed raw transaction to the network. If successful returns the txid of the broadcast trasnaction.
nebl.testnet_broadcastTx({
"body": {
"txHex": ""
}
}, context)
Input
- input
object
- body required broadcastTxRequest
Output
- output broadcastTxResponse
testnet_burnToken
Builds an unsigned raw transaction that burns an NTP1 token on the Neblio blockchain.
nebl.testnet_burnToken({
"body": {
"fee": 0,
"burn": []
}
}, context)
Input
- input
object
- body required burnTokenRequest
Output
- output burnTokenResponse
testnet_issueToken
Builds an unsigned raw transaction that issues a new NTP1 token on the Neblio blockchain.
nebl.testnet_issueToken({
"body": {
"issueAddress": "",
"amount": 0,
"divisibility": 0,
"fee": 0,
"reissuable": true,
"transfer": []
}
}, context)
Input
- input
object
- body required issueTokenRequest
Output
- output issueTokenResponse
testnet_sendToken
Builds an unsigned raw transaction that sends an NTP1 token on the Neblio blockchain.
nebl.testnet_sendToken({
"body": {
"fee": 0,
"to": []
}
}, context)
Input
- input
object
- body required sendTokenRequest
Output
- output sendTokenResponse
testnet_getTokenHolders
Returns the the the addresses holding a token and how many tokens are held
nebl.testnet_getTokenHolders({
"tokenid": ""
}, context)
Input
- input
object
- tokenid required
string
: TokenId to request metadata for
- tokenid required
Output
- output getTokenHoldersResponse
testnet_getTokenId
Translates a token symbol to a tokenId if a token exists with that symbol on the network
nebl.testnet_getTokenId({
"tokensymbol": ""
}, context)
Input
- input
object
- tokensymbol required
string
: Token symbol
- tokensymbol required
Output
- output getTokenIdResponse
testnet_getTokenMetadata
Returns the metadata associated with a token.
nebl.testnet_getTokenMetadata({
"tokenid": ""
}, context)
Input
- input
object
- tokenid required
string
: TokenId to request metadata for - verbosity
number
: 0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses
- tokenid required
Output
- output getTokenMetadataResponse
testnet_getTokenMetadataOfUtxo
Returns the metadata associated with a token for that specific utxo instead of the issuance transaction.
nebl.testnet_getTokenMetadataOfUtxo({
"tokenid": "",
"utxo": ""
}, context)
Input
- input
object
- tokenid required
string
: TokenId to request metadata for - utxo required
string
: Specific UTXO to request metadata for - verbosity
number
: 0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses
- tokenid required
Output
- output getTokenMetadataResponse
testnet_getTransactionInfo
Returns detailed information regarding an NTP1 transaction.
nebl.testnet_getTransactionInfo({
"txid": ""
}, context)
Input
- input
object
- txid required
string
: Neblio txid to get information on.
- txid required
Output
- output getTransactionInfoResponse
Definitions
Error
- Error
object
- code
integer
- fields
string
- message
string
- code
broadcastTxRequest
- broadcastTxRequest
object
- txHex required
string
: Signed raw tx hex to broadcast
- txHex required
broadcastTxResponse
- broadcastTxResponse
object
- txid
string
: Txid of successfully broadcasted transaction
- txid
burnTokenRequest
- burnTokenRequest
object
- burn required
array
: Array of objects representing tokens to be burned- items
object
- amount
number
: Amount of tokens to burn - tokenId
string
: Unique token id we are burning
- amount
- items
- fee required
number
: Fee in satoshi to include in the issuance transaction min 10000 (0.0001 NEBL) - from
array
: Array of addresses to send the token from- items
string
- items
- transfer
array
- items
object
- address
string
: Address to transfer tokens to - amount
number
: Number of tokens to send - tokenId
string
: ID of token we are sending
- address
- items
- burn required
burnTokenResponse
- burnTokenResponse
object
- multisigOutputs
array
: Array of indexes of multisig outputs- items
number
- items
- ntp1OutputIndexes
array
: Array of indexes transfering NTP1 tokens- items
number
- items
- txHex
string
: Unsigned, raw transaction hex of the transaction to burn the token
- multisigOutputs
getAddressBalanceResponse
- getAddressBalanceResponse
number
: Address balance in satoshis
getAddressInfoResponse
- getAddressInfoResponse
object
- address
string
: The Neblio Address - utxos
array
: Array of UTXOs held at this address.- items
object
- blockheight
number
: Blockheight of the UTXO - blocktime
number
: Blocktime of the UTXO - index
number
: Index of the UTXO at this address - scriptPubKey
object
: Object representing the scruptPubKey of the UTXO - tokens
array
: Array of NTP1 tokens in this UTXO.- items
object
- aggregationPolicy
string
: Whether the tokens can be aggregated together - amount
number
: Number of Tokens - divisibility
number
: Decimal places the token is divisible to - issueTxid
string
: TXID the token originally was issued in - lockStatus
boolean
: Whether the token is locked, preventing more from being issued - tokenId
string
: Unique NTP1 identifier for this token
- aggregationPolicy
- items
- txid
string
: Txid of this UTXO - used
boolean
: Whether the UTXO has been used - value
number
: Value of the UTXO in NEBL satoshi
- blockheight
- items
- address
getAddressResponse
- getAddressResponse
object
- addrStr
string
: Address in string form - balance
number
: NEBL balance - balanceSat
number
: NEBL balance in satoshis - totalReceived
number
: Total NEBL received - totalReceivedSat
number
: Total NEBL received in satoshis - totalSent
number
: Total NEBL sent - totalSentSat
number
: Total NEBL sent satoshis - transactions
array
: Array of transaction ids for this address- items
string
- items
- txAppearances
number
: Number of transactions for this address - unconfirmedBalance
number
: Unconfirmed NEBL balance - unconfirmedBalanceSat
number
: Unconfirmed NEBL balance in satoshis - unconfirmedTxAppearances
number
: Number of unconfirmed transactions for this address
- addrStr
getAddressTotalReceivedResponse
- getAddressTotalReceivedResponse
number
: Address total received in satoshis
getAddressTotalSentResponse
- getAddressTotalSentResponse
number
: Address total sent in satoshis
getAddressUnconfirmedBalanceResponse
- getAddressUnconfirmedBalanceResponse
number
: Address unconfirmed balance in satoshis
getAddressUtxosResponse
- getAddressUtxosResponse
array
: Array of objects representing this address' UTXOs- items
object
- address
string
: Address - amount
number
: NEBL amount - confirmations
number
: Number of confirmations - scriptPubKey
string
: scriptPubKey - ts
number
: Timestamp - txid
string
: Transaction ID - vout
number
: vout
- address
- items
getBlockIndexResponse
- getBlockIndexResponse
object
- blockHash
string
: Hash of the requested block
- blockHash
getBlockResponse
- getBlockResponse
object
- bits
string
: Block bits - confirmations
number
: Number of confirmations block has - difficulty
number
: Block difficulty - hash
string
: Block hash - height
number
: Block height - merkleroot
string
: Merkleroot of block - nextblockhash
string
: Hash of the next block on the chain - nonce
number
: Block nonce - previousblockhash
string
: Hash of the previous block on the chain - reward
number
: Number of NEBL awarded in this block - size
number
: Block size in bytes - time
number
: Block time relative to epoch - tx
array
: Array of tx ids in the block- items
string
- items
- version
number
: Block version
- bits
getFaucetResponse
- getFaucetResponse
object
- data
object
- txId
string
: TXID of a successful withdrawal
- txId
- status
string
: Whether the withdrawal was successful
- data
getRawTxResponse
- getRawTxResponse
object
- rawtx
string
: Raw hex representing the transaction
- rawtx
getStatusResponse
- getStatusResponse
object
: Depending on the function called, the structure and information contained in this object will vary
getSyncResponse
- getSyncResponse
object
: Object containing node sync status- blockChainHeight
number
: Current blockchain height - error
string
: Recent sync error messages - height
number
: Height node is synced to - status
string
: Current sync status - syncPercentage
number
: Current sync percentage - type
string
: Node type
- blockChainHeight
getTokenHoldersResponse
- getTokenHoldersResponse
object
- aggregationPolicy
string
: Whether the tokesn are aggregatable - divibility
number
: How many decimal points the token is divisble to - holders
array
- items
object
- address
string
- amount
number
- address
- items
- lockStatus
boolean
: Whether new issuances of this token are locked - someUtxo
string
: A UTXO of this token - tokenId
string
: TokenId of the token
- aggregationPolicy
getTokenIdResponse
- getTokenIdResponse
object
- tokenId
string
: Unique ID of the token - tokenName
string
: String representing the token Symbol
- tokenId
getTokenMetadataResponse
- getTokenMetadataResponse
object
- aggregationPolicy
string
: Whether the tokens are aggregatable - divisibility
number
: Decimal places the token is divisible to - firstBlock
number
: Block number token was issued in - initialIssuanceAmount
number
: Total tokens issued in initial issuance - issuanceTxid
string
: TXID the token was issued with - issueAddress
string
: Address that issued the tokens - lockStatus
boolean
: Whether issuance of more tokens is locked - metadataOfIssuance
object
: Metadata set at issuance- data
object
- description
string
: Token description - issuer
string
: Name of token issuer - tokenName
string
: Token symbol - userData
object
: Metadata set by user on token- meta
array
- items
object
- items
- meta
- description
- data
- metadataOfUtxo
object
: Metadata set for UTXO- userData
object
: Metadata set by user on token for UTXO- meta
array
- items
object
- items
- meta
- userData
- numOfBurns
number
: Number of times tokens have been burned - numOfHolders
number
: Total number of addresses this token is held at - numOfIssuance
number
: Total number of times this token has been issued - numOfTransfers
number
: Total number of transactions of this token - someUtxo
string
: Example UTXO containing this token. - tokenId
string
: ID of the token - totalSupply
number
: Total number of tokens in supply
- aggregationPolicy
getTransactionInfoResponse
- getTransactionInfoResponse
object
- blockhash
string
: Hash of the block this transaction is in - blockheight
number
: Block height of this transaction - blocktime
number
: Block time of this transaction - confirmations
number
: Number of transaction confirmations - fee
number
: Total NEBL used as fee for this transcation in satoshis - hex
string
: Transaction in raw hex - locktime
number
: Transaction locktime - time
number
: Transaction time - totalsent
number
: Total NEBL sent in this transaction in satoshis - txid
string
: TXID of transaction - version
number
: Transaction version - vin
array
: Array of transaction inputs- items
object
- previousOutput
object
- addresses
array
- items
string
- items
- asm
string
- hex
string
- reqSigs
number
- type
string
- addresses
- scriptSig
object
- asm
string
- hex
string
- asm
- sequence
number
- tokens
array
- items
object
- aggregationPolicy
string
: Whether the tokens are aggregatable - amount
number
: Number of tokens - divisibility
number
: Decimal places the token is divisible to - issueTxid
string
: TXID the token was issued in - lockStatus
boolean
: Whether issuance of more tokens is locked - tokenId
string
: ID of the token
- aggregationPolicy
- items
- txid
string
: TXID of the input - value
number
: Value of input in NEBL satoshi - vout
number
: output index
- previousOutput
- items
- vout
array
: Array of transaction outputs- items
object
- blockheight
number
: Blockheight of this transaction - n
number
: Output index - scriptPubKey
object
- addresses
array
- items
string
- items
- asm
string
- hex
string
- reqSigs
number
- type
string
- addresses
- tokens
array
- items
object
- aggregationPolicy
string
: Whether the tokens are aggregatable - amount
number
: Number of tokens - divisibility
number
: Decimal places the token is divisible to - issueTxid
string
: TXID the token was issued in - lockStatus
boolean
: Whether issuance of more tokens is locked - tokenId
string
: ID of the token
- aggregationPolicy
- items
- used
boolean
: Whether this output has now been used - usedBlockheight
number
: Blockheight this output was used in - usedTxid
string
: TXID this output was used in - value
number
: Value of the output in NEBL satoshi
- blockheight
- items
- blockhash
getTxResponse
- getTxResponse
object
- blockhash
string
: Hash of the block this transaction is in - blockheight
number
: Block height of this transaction - blocktime
number
: Block time of this transaction - confirmations
number
: Number of transaction confirmations - fee
number
: Total NEBL used as fee for this transcation in satoshis - fees
number
: Total NEBL used in fees for this transaction - locktime
number
: Transaction locktime - size
number
: Transcation size in bytes - time
number
: Transaction time - totalsent
number
: Total NEBL sent in this transaction in satoshis - txid
string
: TXID of transaction - valueIn
number
: Total NEBL input in this transaction - valueOut
number
: Total NEBL output in this transaction - version
number
: Transaction version - vin
array
: Array of transaction inputs- items
object
- n
number
: input index - scriptSig
object
- asm
string
- hex
string
- asm
- sequence
number
- txid
string
: TXID of the input - value
number
: Value of input in NEBL - valueSat
number
: Value of input in NEBL satoshi - vout
number
: output index
- n
- items
- vout
array
: Array of transaction outputs- items
object
- blockheight
number
: Blockheight of this transaction - n
number
: Output index - scriptPubKey
object
- addresses
array
- items
string
- items
- asm
string
- hex
string
- reqSigs
number
- type
string
- addresses
- used
boolean
: Whether this output has now been used - usedBlockheight
number
: Blockheight this output was used in - usedTxid
string
: TXID this output was used in - value
number
: Value of the output in NEBL
- blockheight
- items
- blockhash
getTxsResponse
- getTxsResponse
object
: Object containing an array of transaction objects- pagesTotal
number
: Number of pages of transactions - txs
array
: Array of transaction objects- items getTxResponse
- pagesTotal
issueTokenRequest
- issueTokenRequest
object
- amount required
number
: Number of tokens to issue - divisibility required
number
: Number of decimal places the token should be divisble by (0-7) - fee required
number
: Fee in satoshi to include in the issuance transaction min 1000000000 (10 NEBL) - flags
object
: Object representing flags that potentialy modify this transaction- splitChange
boolean
: If true change will be split into 2 outputs, one for NEBL change and one for NTP1 change (recommended)
- splitChange
- issueAddress required
string
: Address issuing the token - metadata
object
: Object representing all metadata at token issuance- description
string
: Long name or description of token (ex. Nibble) - encryptions
array
: Array of encryption instruction objects for encrypting userData- items
object
- format
string
: key format (pem or der) - key
string
: userData key to encrypt - pubkey
string
: RSA public key used for encryption - type
string
: pkcs1 or pkcs8
- format
- items
- issuer
string
: Name of token issuer - rules
object
: Object describing token rules- expiration
object
: Object describing expiration rules of the token- locked
boolean
: Whether this rule can be modified in future transactions - validUntil
number
: Blockheight at wh
- locked
- fees
object
- items
array
: Array of objects describing fee rules- items
object
- items
- locked
boolean
: Whether this rule can be modified in future transactions
- items
- holders
array
: Array of objects describing what addresses can hold the token- items
object
- address
string
: Address that can hold the token - locked
boolean
: Whether this rule can be modified in future transactions
- address
- items
- expiration
- tokenName
string
: Token Symbol it will be identified by (ex. NIBBL) - urls
array
- items
object
- dataHash
string
: Hash of data at the URL, used for verification - mimeType
string
: mimeType of URL content - name
string
: Name of the URL - url
string
: Actual URL
- dataHash
- items
- userData
object
: Metadata set by user on token- meta
array
- items
object
- key
string
- value
string
- key
- items
- meta
- description
- reissuable required
boolean
: whether the token should be reissuable - transfer required
array
- items
object
- address
string
: Address to send the amount of issued tokens to - amount
number
- address
- items
- amount required
issueTokenResponse
- issueTokenResponse
object
- tokenId
string
: TokenId of the to be issued token - txHex
string
: Unsigned, raw transaction hex of the transaction to issue the token
- tokenId
rpcRequest
- rpcRequest
object
- id required
string
: Identifier of RCP caller - jsonrpc required
string
: JSON-RPC version - method required
string
: Name of the Neblio RPC method to call - params required
array
: Array of string params that should be passed to the RPC method.- items
string
- items
- id required
rpcResponse
- rpcResponse
object
: Object containing the JSON response from the Neblio node.- error
object
: Object containing any error information. - id
string
: Identifier of RCP caller - result
object
: Object containing the response output.
- error
sendTokenRequest
- sendTokenRequest
object
- fee required
number
: Fee in satoshi to include in the issuance transaction min 10000 (0.0001 NEBL) - flags
object
: Object representing flags that potentialy modify this transaction- splitChange
boolean
: If true change will be split into 2 outputs, one for NEBL change and one for NTP1 change (recommended)
- splitChange
- from
array
: Array of addresses to send the token from- items
string
- items
- metadata
object
: Object representing all metadata at token issuance- description
string
: Long name or description of token (ex. Nibble) - encryptions
array
: Array of encryption instruction objects for encrypting userData- items
object
- format
string
: key format (pem or der) - key
string
: userData key to encrypt - pubkey
string
: RSA public key used for encryption - type
string
: pkcs1 or pkcs8
- format
- items
- issuer
string
: Name of token issuer - rules
object
: Object describing token rules- expiration
object
: Object describing expiration rules of the token- locked
boolean
: Whether this rule can be modified in future transactions - validUntil
number
: Blockheight at wh
- locked
- fees
object
- items
array
: Array of objects describing fee rules- items
object
- items
- locked
boolean
: Whether this rule can be modified in future transactions
- items
- holders
array
: Array of objects describing what addresses can hold the token- items
object
- address
string
: Address that can hold the token - locked
boolean
: Whether this rule can be modified in future transactions
- address
- items
- expiration
- tokenName
string
: Token Symbol it will be identified by (ex. NIBBL) - urls
array
- items
object
- dataHash
string
: Hash of data at the URL, used for verification - mimeType
string
: mimeType of URL content - name
string
: Name of the URL - url
string
: Actual URL
- dataHash
- items
- userData
object
: Metadata set by user on token- meta
array
- items
object
- key
string
- value
string
- key
- items
- meta
- description
- sendutxo
array
: Array of UTXOs to send the token from- items
string
- items
- to required
array
- items
object
- address
string
: Address to transfer tokens to - amount
number
: Number of tokens to send - tokenId
string
: ID of token we are sending
- address
- items
- fee required
sendTokenResponse
- sendTokenResponse
object
- multisigOutputs
array
: Array of indexes of multisig outputs- items
number
- items
- ntp1OutputIndexes
array
: Array of indexes transfering NTP1 tokens- items
number
- items
- txHex
string
: Unsigned, raw transaction hex of the transaction to send the token
- multisigOutputs
sendTxRequest
- sendTxRequest
object
- txHex
string
: Signed raw tx hex to broadcast
- txHex