3.0.0 • Published 5 years ago

@datafire/apidapp v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@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

account.options

apidapp.account.options(null, context)

Input

This action has no parameters

Output

account.post

Create new account

apidapp.account.post(null, context)

Input

This action has no parameters

Output

account.id.get

Get account balance

apidapp.account.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

account.id.options

apidapp.account.id.options({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

block.get

Access detailed block information

apidapp.block.get(null, context)

Input

This action has no parameters

Output

block.options

apidapp.block.options(null, context)

Input

This action has no parameters

Output

block.id.get

Get information about particular block

apidapp.block.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

block.id.options

apidapp.block.id.options({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

block.id.transaction.get

Get transaction count within block

apidapp.block.id.transaction.get({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

block.id.transaction.options

apidapp.block.id.transaction.options({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

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

Output

block.id.transaction.index.options

apidapp.block.id.transaction.index.options({
  "id": "",
  "index": ""
}, context)

Input

  • input object
    • id required string
    • index required string

Output

blockchain.get

Get a list of supported blockchains

apidapp.blockchain.get(null, context)

Input

This action has no parameters

Output

blockchain.options

apidapp.blockchain.options(null, context)

Input

This action has no parameters

Output

blockchain.id.get

Get information about blockchain woth given id

apidapp.blockchain.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

blockchain.id.options

apidapp.blockchain.id.options({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

contract.options

apidapp.contract.options(null, context)

Input

This action has no parameters

Output

contract.post

Create a new smart contract

apidapp.contract.post(null, context)

Input

This action has no parameters

Output

contract.id.get

Get contract balance

apidapp.contract.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

contract.id.options

apidapp.contract.id.options({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

contract.id.post

Call the contract

apidapp.contract.id.post({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

echo.options

apidapp.echo.options(null, context)

Input

This action has no parameters

Output

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

erc20.options

apidapp.erc20.options(null, context)

Input

This action has no parameters

Output

erc20.post

apidapp.erc20.post(null, context)

Input

This action has no parameters

Output

erc20.address.get

Get information amout token balance in the account

apidapp.erc20.address.get({
  "address": ""
}, context)

Input

  • input object
    • address required string

Output

erc20.address.options

apidapp.erc20.address.options({
  "address": ""
}, context)

Input

  • input object
    • address required string

Output

erc20.address.post

Transfer tokens to another account

apidapp.erc20.address.post({
  "address": ""
}, context)

Input

  • input object
    • address required string

Output

key.get

apidapp.key.get({}, context)

Input

  • input object
    • token string

Output

key.options

apidapp.key.options(null, context)

Input

This action has no parameters

Output

key.post

apidapp.key.post(null, context)

Input

This action has no parameters

Output

key.key.delete

apidapp.key.key.delete({
  "key": ""
}, context)

Input

  • input object
    • key required string

Output

key.key.options

apidapp.key.key.options({
  "key": ""
}, context)

Input

  • input object
    • key required string

Output

transaction.options

apidapp.transaction.options(null, context)

Input

This action has no parameters

Output

transaction.post

Create a new transaction. Transfer Ether between accounts

apidapp.transaction.post(null, context)

Input

This action has no parameters

Output

transaction.hash.get

Get information about transaction by the transaction hash value

apidapp.transaction.hash.get({
  "hash": ""
}, context)

Input

  • input object
    • hash required string

Output

transaction.hash.options

apidapp.transaction.hash.options({
  "hash": ""
}, context)

Input

  • input object
    • hash required string

Output

transaction.hash.receipt.get

Get receipt detail information

apidapp.transaction.hash.receipt.get({
  "hash": ""
}, context)

Input

  • input object
    • hash required string

Output

transaction.hash.receipt.options

apidapp.transaction.hash.receipt.options({
  "hash": ""
}, context)

Input

  • input object
    • hash required string

Output

version.get

Get API version info

apidapp.version.get(null, context)

Input

This action has no parameters

Output

version.options

apidapp.version.options(null, context)

Input

This action has no parameters

Output

wallet.get

Get current account balance

apidapp.wallet.get(null, context)

Input

This action has no parameters

Output

wallet.options

apidapp.wallet.options(null, context)

Input

This action has no parameters

Output

wallet.post

Create personal wallet

apidapp.wallet.post(null, context)

Input

This action has no parameters

Output

wallet.account.get

apidapp.wallet.account.get(null, context)

Input

This action has no parameters

Output

wallet.account.options

apidapp.wallet.account.options(null, context)

Input

This action has no parameters

Output

wallet.account.post

apidapp.wallet.account.post(null, context)

Input

This action has no parameters

Output

wallet.account.id.get

Get account balance

apidapp.wallet.account.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

wallet.account.id.options

apidapp.wallet.account.id.options({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

wallet.account.id.contract.post

apidapp.wallet.account.id.contract.post({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

wallet.account.id.erc20.post

apidapp.wallet.account.id.erc20.post({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

wallet.account.id.pay.options

apidapp.wallet.account.id.pay.options({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

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

Output

Definitions

Empty

  • Empty Schema object