@datafire/apidapp v3.0.0
@datafire/apidapp
Client library for ApiDapp
Installation and Usage
npm install --save @datafire/apidapp
let apidapp = require('@datafire/apidapp').create({
Key2: ""
});
.then(data => {
console.log(data);
});
Description
Actions
.options
apidapp..options(null, context)
Input
This action has no parameters
Output
- output Empty
account.options
apidapp.account.options(null, context)
Input
This action has no parameters
Output
- output Empty
account.post
Create new account
apidapp.account.post(null, context)
Input
This action has no parameters
Output
- output Empty
account.id.get
Get account balance
apidapp.account.id.get({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
account.id.options
apidapp.account.id.options({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
block.get
Access detailed block information
apidapp.block.get(null, context)
Input
This action has no parameters
Output
- output Empty
block.options
apidapp.block.options(null, context)
Input
This action has no parameters
Output
- output Empty
block.id.get
Get information about particular block
apidapp.block.id.get({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
block.id.options
apidapp.block.id.options({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
block.id.transaction.get
Get transaction count within block
apidapp.block.id.transaction.get({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
block.id.transaction.options
apidapp.block.id.transaction.options({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
block.id.transaction.index.get
Get information about particular transaction within block
apidapp.block.id.transaction.index.get({
"index": "",
"id": ""
}, context)
Input
- input
object
- index required
string
- id required
string
- index required
Output
- output Empty
block.id.transaction.index.options
apidapp.block.id.transaction.index.options({
"id": "",
"index": ""
}, context)
Input
- input
object
- id required
string
- index required
string
- id required
Output
- output Empty
blockchain.get
Get a list of supported blockchains
apidapp.blockchain.get(null, context)
Input
This action has no parameters
Output
- output Empty
blockchain.options
apidapp.blockchain.options(null, context)
Input
This action has no parameters
Output
- output Empty
blockchain.id.get
Get information about blockchain woth given id
apidapp.blockchain.id.get({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
blockchain.id.options
apidapp.blockchain.id.options({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
contract.options
apidapp.contract.options(null, context)
Input
This action has no parameters
Output
- output Empty
contract.post
Create a new smart contract
apidapp.contract.post(null, context)
Input
This action has no parameters
Output
- output Empty
contract.id.get
Get contract balance
apidapp.contract.id.get({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
contract.id.options
apidapp.contract.id.options({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
contract.id.post
Call the contract
apidapp.contract.id.post({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
echo.options
apidapp.echo.options(null, context)
Input
This action has no parameters
Output
- output Empty
erc20.get
Get token information such as name, total amount in circulation, etc
apidapp.erc20.get(null, context)
Input
This action has no parameters
Output
- output Empty
erc20.options
apidapp.erc20.options(null, context)
Input
This action has no parameters
Output
- output Empty
erc20.post
apidapp.erc20.post(null, context)
Input
This action has no parameters
Output
- output Empty
erc20.address.get
Get information amout token balance in the account
apidapp.erc20.address.get({
"address": ""
}, context)
Input
- input
object
- address required
string
- address required
Output
- output Empty
erc20.address.options
apidapp.erc20.address.options({
"address": ""
}, context)
Input
- input
object
- address required
string
- address required
Output
- output Empty
erc20.address.post
Transfer tokens to another account
apidapp.erc20.address.post({
"address": ""
}, context)
Input
- input
object
- address required
string
- address required
Output
- output Empty
key.get
apidapp.key.get({}, context)
Input
- input
object
- token
string
- token
Output
- output Empty
key.options
apidapp.key.options(null, context)
Input
This action has no parameters
Output
- output Empty
key.post
apidapp.key.post(null, context)
Input
This action has no parameters
Output
- output Empty
key.key.delete
apidapp.key.key.delete({
"key": ""
}, context)
Input
- input
object
- key required
string
- key required
Output
- output Empty
key.key.options
apidapp.key.key.options({
"key": ""
}, context)
Input
- input
object
- key required
string
- key required
Output
- output Empty
transaction.options
apidapp.transaction.options(null, context)
Input
This action has no parameters
Output
- output Empty
transaction.post
Create a new transaction. Transfer Ether between accounts
apidapp.transaction.post(null, context)
Input
This action has no parameters
Output
- output Empty
transaction.hash.get
Get information about transaction by the transaction hash value
apidapp.transaction.hash.get({
"hash": ""
}, context)
Input
- input
object
- hash required
string
- hash required
Output
- output Empty
transaction.hash.options
apidapp.transaction.hash.options({
"hash": ""
}, context)
Input
- input
object
- hash required
string
- hash required
Output
- output Empty
transaction.hash.receipt.get
Get receipt detail information
apidapp.transaction.hash.receipt.get({
"hash": ""
}, context)
Input
- input
object
- hash required
string
- hash required
Output
- output Empty
transaction.hash.receipt.options
apidapp.transaction.hash.receipt.options({
"hash": ""
}, context)
Input
- input
object
- hash required
string
- hash required
Output
- output Empty
version.get
Get API version info
apidapp.version.get(null, context)
Input
This action has no parameters
Output
- output Empty
version.options
apidapp.version.options(null, context)
Input
This action has no parameters
Output
- output Empty
wallet.get
Get current account balance
apidapp.wallet.get(null, context)
Input
This action has no parameters
Output
- output Empty
wallet.options
apidapp.wallet.options(null, context)
Input
This action has no parameters
Output
- output Empty
wallet.post
Create personal wallet
apidapp.wallet.post(null, context)
Input
This action has no parameters
Output
- output Empty
wallet.account.get
apidapp.wallet.account.get(null, context)
Input
This action has no parameters
Output
- output Empty
wallet.account.options
apidapp.wallet.account.options(null, context)
Input
This action has no parameters
Output
- output Empty
wallet.account.post
apidapp.wallet.account.post(null, context)
Input
This action has no parameters
Output
- output Empty
wallet.account.id.get
Get account balance
apidapp.wallet.account.id.get({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
wallet.account.id.options
apidapp.wallet.account.id.options({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
wallet.account.id.contract.post
apidapp.wallet.account.id.contract.post({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
wallet.account.id.erc20.post
apidapp.wallet.account.id.erc20.post({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
wallet.account.id.pay.options
apidapp.wallet.account.id.pay.options({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
wallet.account.id.pay.post
Send payment from the account held within the wallet
apidapp.wallet.account.id.pay.post({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output Empty
Definitions
Empty
- Empty Schema
object
5 years ago