All URIs are relative to https://ntp1node.nebl.io
Method | HTTP request | Description |
---|---|---|
broadcastTx | POST /ntp1/broadcast | Broadcasts a signed raw transaction to the network |
burnToken | POST /ntp1/burntoken | Builds a transaction that burns an NTP1 Token |
getAddressInfo | GET /ntp1/addressinfo/{address} | Information On a Neblio Address |
getTokenHolders | GET /ntp1/stakeholders/{tokenid} | Get Addresses Holding a Token |
getTokenId | GET /ntp1/tokenid/{tokensymbol} | Returns the tokenId representing a token |
getTokenMetadata | GET /ntp1/tokenmetadata/{tokenid} | Get Metadata of Token |
getTokenMetadataOfUtxo | GET /ntp1/tokenmetadata/{tokenid}/{utxo} | Get UTXO Metadata of Token |
getTransactionInfo | GET /ntp1/transactioninfo/{txid} | Information On an NTP1 Transaction |
issueToken | POST /ntp1/issue | Builds a transaction that issues a new NTP1 Token |
sendToken | POST /ntp1/sendtoken | Builds a transaction that sends an NTP1 Token |
BroadcastTxResponse broadcastTx(broadcastTxRequest)
Broadcasts a signed raw transaction to the network
Broadcasts a signed raw transaction to the network. If successful returns the txid of the broadcast trasnaction.
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let broadcastTxRequest = new Neblioapi.BroadcastTxRequest(); // BroadcastTxRequest | Object representing a transaction to broadcast
apiInstance.broadcastTx(broadcastTxRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
broadcastTxRequest | BroadcastTxRequest | Object representing a transaction to broadcast |
No authorization required
- Content-Type: application/json
- Accept: application/json
BurnTokenResponse burnToken(burnTokenRequest)
Builds a transaction that burns an NTP1 Token
Builds an unsigned raw transaction that burns an NTP1 token on the Neblio blockchain.
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let burnTokenRequest = new Neblioapi.BurnTokenRequest(); // BurnTokenRequest | Object representing the token to be burned
apiInstance.burnToken(burnTokenRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
burnTokenRequest | BurnTokenRequest | Object representing the token to be burned |
No authorization required
- Content-Type: application/json
- Accept: application/json
GetAddressInfoResponse getAddressInfo(address)
Information On a Neblio Address
Returns both NEBL and NTP1 token UTXOs held at the given address.
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let address = "address_example"; // String | Neblio Address to get information on.
apiInstance.getAddressInfo(address, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
address | String | Neblio Address to get information on. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetTokenHoldersResponse getTokenHolders(tokenid)
Get Addresses Holding a Token
Returns the the the addresses holding a token and how many tokens are held
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let tokenid = "tokenid_example"; // String | TokenId to request metadata for
apiInstance.getTokenHolders(tokenid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
tokenid | String | TokenId to request metadata for |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetTokenIdResponse getTokenId(tokensymbol)
Returns the tokenId representing a token
Translates a token symbol to a tokenId if a token exists with that symbol on the network
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let tokensymbol = "tokensymbol_example"; // String | Token symbol
apiInstance.getTokenId(tokensymbol, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
tokensymbol | String | Token symbol |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetTokenMetadataResponse getTokenMetadata(tokenid, opts)
Get Metadata of Token
Returns the metadata associated with a token.
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let tokenid = "tokenid_example"; // String | TokenId to request metadata for
let opts = {
'verbosity': 3.4 // Number | 0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses
};
apiInstance.getTokenMetadata(tokenid, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
tokenid | String | TokenId to request metadata for | |
verbosity | Number | 0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetTokenMetadataResponse getTokenMetadataOfUtxo(tokenid, utxo, opts)
Get UTXO Metadata of Token
Returns the metadata associated with a token for that specific utxo instead of the issuance transaction.
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let tokenid = "tokenid_example"; // String | TokenId to request metadata for
let utxo = "utxo_example"; // String | Specific UTXO to request metadata for
let opts = {
'verbosity': 3.4 // Number | 0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses
};
apiInstance.getTokenMetadataOfUtxo(tokenid, utxo, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
tokenid | String | TokenId to request metadata for | |
utxo | String | Specific UTXO to request metadata for | |
verbosity | Number | 0 (Default) is fastest, 1 contains token stats, 2 contains token holding addresses | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetTransactionInfoResponse getTransactionInfo(txid)
Information On an NTP1 Transaction
Returns detailed information regarding an NTP1 transaction.
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let txid = "txid_example"; // String | Neblio txid to get information on.
apiInstance.getTransactionInfo(txid, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
txid | String | Neblio txid to get information on. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
IssueTokenResponse issueToken(issueTokenRequest)
Builds a transaction that issues a new NTP1 Token
Builds an unsigned raw transaction that issues a new NTP1 token on the Neblio blockchain.
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let issueTokenRequest = new Neblioapi.IssueTokenRequest(); // IssueTokenRequest | Object representing the token to be created
apiInstance.issueToken(issueTokenRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
issueTokenRequest | IssueTokenRequest | Object representing the token to be created |
No authorization required
- Content-Type: application/json
- Accept: application/json
SendTokenResponse sendToken(sendTokenRequest)
Builds a transaction that sends an NTP1 Token
Builds an unsigned raw transaction that sends an NTP1 token on the Neblio blockchain.
import Neblioapi from 'neblioapi';
let apiInstance = new Neblioapi.NTP1Api();
let sendTokenRequest = new Neblioapi.SendTokenRequest(); // SendTokenRequest | Object representing the token to be sent
apiInstance.sendToken(sendTokenRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
sendTokenRequest | SendTokenRequest | Object representing the token to be sent |
No authorization required
- Content-Type: application/json
- Accept: application/json