@eoscafe/light-api
Advanced tools
Comparing version 0.0.2 to 3.2.3
export declare const GET_ACCOUNT = "/api/account"; | ||
export declare const GET_ACCOUNT_INFO = "/api/accinfo"; | ||
export declare const GET_BALANCES = "/api/balances"; | ||
@@ -4,0 +3,0 @@ export declare const GET_KEY_ACCOUNTS = "/api/key"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GET_ACCOUNT = "/api/account"; | ||
exports.GET_ACCOUNT_INFO = "/api/accinfo"; | ||
exports.GET_BALANCES = "/api/balances"; | ||
@@ -6,0 +5,0 @@ exports.GET_KEY_ACCOUNTS = "/api/key"; |
@@ -1,2 +0,2 @@ | ||
import { GetAccount, GetBalances, GetKeyAccounts, GetCodehash, GetAccountInfo } from './types/api'; | ||
import { GetAccount, GetBalances, GetKeyAccounts, GetCodehash } from './types/api'; | ||
export declare type Fetch = (url: string | Request, init?: RequestInit) => Promise<Response>; | ||
@@ -39,11 +39,2 @@ /** | ||
/** | ||
* [GET /api/accinfo] | ||
* | ||
* Retrieve all resources and authorization information for an account: | ||
* | ||
* @param {string} accountName name of account | ||
* @returns {Promise<GetAccountInfo>} account | ||
*/ | ||
get_account_info(accountName: string): Promise<GetAccountInfo>; | ||
/** | ||
* [GET /api/balances] | ||
@@ -50,0 +41,0 @@ * |
@@ -127,14 +127,2 @@ "use strict"; | ||
/** | ||
* [GET /api/accinfo] | ||
* | ||
* Retrieve all resources and authorization information for an account: | ||
* | ||
* @param {string} accountName name of account | ||
* @returns {Promise<GetAccountInfo>} account | ||
*/ | ||
JsonRpc.prototype.get_account_info = function (accountName) { | ||
var url = endpoints_1.GET_ACCOUNT_INFO + "/" + this.chain + "/" + accountName; | ||
return this.get(url); | ||
}; | ||
/** | ||
* [GET /api/balances] | ||
@@ -141,0 +129,0 @@ * |
@@ -10,9 +10,2 @@ import { Balance, ChainInfo, DelegatedFrom, DelegatedTo, Linkauth, Permission, CodehashInfo } from './common'; | ||
} | ||
export interface GetAccountInfo { | ||
account_name: string; | ||
chain: ChainInfo; | ||
delegated_from: DelegatedFrom[]; | ||
delegated_to: DelegatedTo[]; | ||
linkauth: Linkauth[]; | ||
} | ||
export interface GetBalances { | ||
@@ -19,0 +12,0 @@ account_name: string; |
{ | ||
"name": "@eoscafe/light-api", | ||
"version": "0.0.2", | ||
"version": "3.2.3", | ||
"description": "Light API HTTP Javascript library", | ||
@@ -10,4 +10,8 @@ "main": "dist/index.js", | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "tsc", | ||
"build": "tsc", | ||
"test": "jest --coverage", | ||
@@ -32,3 +36,2 @@ "posttest": "tslint -p .", | ||
}, | ||
"dependencies": {}, | ||
"repository": { | ||
@@ -40,3 +43,4 @@ "type": "git", | ||
"url": "https://github.com/eoscafe/light-api/issues" | ||
} | ||
}, | ||
"gitHead": "51578f7f414c46016a8703e3d6f7205f29190b73" | ||
} |
@@ -50,47 +50,43 @@ # LIGHT API HTTP Javascript library | ||
- [Parameters](#parameters-1) | ||
- [get_account_info](#get_account_info) | ||
- [get_balances](#get_balances) | ||
- [Parameters](#parameters-2) | ||
- [get_balances](#get_balances) | ||
- [get_key_accounts](#get_key_accounts) | ||
- [Parameters](#parameters-3) | ||
- [get_key_accounts](#get_key_accounts) | ||
- [Parameters](#parameters-4) | ||
- [get_networks](#get_networks) | ||
- [get_sync_info](#get_sync_info) | ||
- [get_token_balance](#get_token_balance) | ||
- [Parameters](#parameters-4) | ||
- [get_topholders](#get_topholders) | ||
- [Parameters](#parameters-5) | ||
- [get_topholders](#get_topholders) | ||
- [Parameters](#parameters-6) | ||
- [get_usercount](#get_usercount) | ||
- [get_topram](#get_topram) | ||
- [Parameters](#parameters-6) | ||
- [get_topstake](#get_topstake) | ||
- [Parameters](#parameters-7) | ||
- [get_topstake](#get_topstake) | ||
- [get_codehash](#get_codehash) | ||
- [Parameters](#parameters-8) | ||
- [get_codehash](#get_codehash) | ||
- [get_tokenholder_count](#get_tokenholder_count) | ||
- [Parameters](#parameters-9) | ||
- [get_tokenholder_count](#get_tokenholder_count) | ||
- [Parameters](#parameters-10) | ||
- [JsonRpc](#jsonrpc-1) | ||
- [get_account](#get_account-1) | ||
- [Parameters](#parameters-10) | ||
- [get_balances](#get_balances-1) | ||
- [Parameters](#parameters-11) | ||
- [get_account_info](#get_account_info-1) | ||
- [get_key_accounts](#get_key_accounts-1) | ||
- [Parameters](#parameters-12) | ||
- [get_balances](#get_balances-1) | ||
- [Parameters](#parameters-13) | ||
- [get_key_accounts](#get_key_accounts-1) | ||
- [Parameters](#parameters-14) | ||
- [get_networks](#get_networks-1) | ||
- [get_sync_info](#get_sync_info-1) | ||
- [get_token_balance](#get_token_balance-1) | ||
- [Parameters](#parameters-15) | ||
- [Parameters](#parameters-13) | ||
- [get_topholders](#get_topholders-1) | ||
- [Parameters](#parameters-16) | ||
- [Parameters](#parameters-14) | ||
- [get_usercount](#get_usercount-1) | ||
- [get_topram](#get_topram-1) | ||
- [Parameters](#parameters-17) | ||
- [Parameters](#parameters-15) | ||
- [get_topstake](#get_topstake-1) | ||
- [Parameters](#parameters-18) | ||
- [Parameters](#parameters-16) | ||
- [get_codehash](#get_codehash-1) | ||
- [Parameters](#parameters-19) | ||
- [Parameters](#parameters-17) | ||
- [get_tokenholder_count](#get_tokenholder_count-1) | ||
- [Parameters](#parameters-20) | ||
- [Parameters](#parameters-18) | ||
- [Error](#error) | ||
@@ -126,14 +122,2 @@ - [Error](#error-1) | ||
#### get_account_info | ||
[GET /api/accinfo] | ||
Retrieve all resources and authorization information for an account: | ||
##### Parameters | ||
- `accountName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of account | ||
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<GetAccountInfo>** account | ||
#### get_balances | ||
@@ -279,14 +263,2 @@ | ||
#### get_account_info | ||
[GET /api/accinfo] | ||
Retrieve all resources and authorization information for an account: | ||
##### Parameters | ||
- `accountName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of account | ||
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<GetAccountInfo>** account | ||
#### get_balances | ||
@@ -293,0 +265,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
45410
21
632
390