cosmos-rest
Advanced tools
Comparing version 0.1.2 to 0.1.3
10
index.js
@@ -65,3 +65,13 @@ 'use strcit'; | ||
} | ||
//查询余额 balances | ||
async get_balances(address){ | ||
const data = await this.request('GET',`/bank/balances/${address}`); | ||
return data; | ||
} | ||
//转账 | ||
async transfer_accounts(json){ | ||
const data = await this.request('POST','/txs',json); | ||
return data; | ||
} | ||
} | ||
export default Client; |
{ | ||
"name": "cosmos-rest", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A js sdk for cosmos blockchain", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25033
225