dfuse.io HTTP API Javascript library
Installation
Using Yarn:
yarn add dfuse-eoshttp-js
or using NPM:
npm install --save dfuse-eoshttp-js
Quick Start
CommonJS
const JsonRpc = const fetch = const endpoint = "https://mainnet.eos.dfuse.io"const token = "<Paste your API token here>"const rpc = endpoint fetch token
TypeScript
ENV Variables
DFUSE_IO_ENDPOINT=<Enter Dfuse Endpoint> # "https://mainnet.eos.dfuse.io" DFUSE_IO_API_KEY=<Paste your API token here> # Get key at dfuse.io DFUSE_IO_SERVER_API_KEY=<Paste your Server API token here> # Get key at dfuse.io
API
GET /v0/search/transactions
Search an EOSIO blockchain for transactions based on free-form criterias, using the simple dfuse Search query language.
const searchQuery = 'receiver:eosio.token action:transfer data.to:eoscafeblock' rpc
GET /v0/state/abi
Fetches the ABI for a given contract account, at any block height.
rpc
GET /v0/state/abi/bin_to_json
Fetches the ABI for a given contract account, at any block height.
rpc
GET /v0/state/permission_links
Fetches snapshots of any account's linked authorizations on the blockchain, at any block height.
rpc
GET /v0/state/table
Fetches the state of any table, at any block height.
rpc
GET /v0/state/tables/accounts
Fetches a table for a given contract account for a group of scopes, at any block height.
rpcstate_tables_accounts<balance: string>"eosio.token" "eosadddddddd" "tokenbyeocat" "b1" "accounts" block_num: 25000000 json: true
GET /v0/state/tables/scopes
Fetches a table for a given contract account for a group of scopes, at any block height.
rpc
POST /v1/auth/issue
Issues Dfuse API Key using a Server Token
rpc