amp-wallet
Advanced tools
Comparing version 1.0.17 to 1.0.18
{ | ||
"name": "amp-wallet", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Amanatpay Blockchain Wallet", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
[![Codecov Coverage](https://img.shields.io/codecov/c/github/caki0915/my-awesome-greeter/coverage.svg?style=flat-square)](https://codecov.io/gh/caki0915/my-awesome-greeter/) | ||
# Amanatpay Wallet system on blockchain | ||
New network | ||
## Functions | ||
#function | ||
<dl> | ||
@@ -20,2 +16,4 @@ <dt><a href="#getAllAccountBalances">getAllAccountBalances(publicKey)</a> ⇒ <code>Array.<object></code></dt> | ||
<dd><p>create new wallet and load 1000 native gas</p></dd> | ||
<dt><a href="#History">History()</a></dt> | ||
<dd><p>Wallet's transactions for all assets</p></dd> | ||
<dt><a href="#getWalletObj">getWalletObj(publicKey)</a> ⇒ <code>AccountResponse</code></dt> | ||
@@ -27,6 +25,10 @@ <dd><p>get wallet's object from Amanatpay blockchain</p></dd> | ||
<dd><p>Create a key pair for creating account</p></dd> | ||
<dt><a href="#createAccount">createAccount(distSecret)</a></dt> | ||
<dt><a href="#createAccount">createAccount(distSecret)</a> ⇒</dt> | ||
<dd><p>creat account</p></dd> | ||
<dt><a href="#friendbot">friendbot(pub)</a></dt> | ||
<dd><p>load gas from friend bot</p></dd> | ||
<dd><p>load gas from friend-bot</p></dd> | ||
<dt><a href="#transactionHistory">transactionHistory(pub)</a> ⇒ <code>object</code></dt> | ||
<dd><p>Wallet's transactions for all assets</p></dd> | ||
<dt><a href="#convertTransactionHistory">convertTransactionHistory(history)</a></dt> | ||
<dd><p>convert raw transactions list ( payment) to needed details</p></dd> | ||
</dl> | ||
@@ -109,2 +111,8 @@ | ||
<a name="History"></a> | ||
## History() | ||
<p>Wallet's transactions for all assets</p> | ||
**Kind**: global function | ||
<a name="getWalletObj"></a> | ||
@@ -142,6 +150,7 @@ | ||
## createAccount(distSecret) | ||
## createAccount(distSecret) ⇒ | ||
<p>creat account</p> | ||
**Kind**: global function | ||
**Kind**: global function | ||
**Returns**: <p>(object} accountDetails: direct return from blockchain key: keypair , public and private keys</p> | ||
@@ -155,3 +164,3 @@ | Param | Type | Description | | ||
## friendbot(pub) | ||
<p>load gas from friend bot</p> | ||
<p>load gas from friend-bot</p> | ||
@@ -164,1 +173,24 @@ **Kind**: global function | ||
<a name="transactionHistory"></a> | ||
## transactionHistory(pub) ⇒ <code>object</code> | ||
<p>Wallet's transactions for all assets</p> | ||
**Kind**: global function | ||
**Returns**: <code>object</code> - <p>list of all wallet's transactions</p> | ||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| pub | <code>string</code> | <p>wallet public key</p> | | ||
<a name="convertTransactionHistory"></a> | ||
## convertTransactionHistory(history) | ||
<p>convert raw transactions list ( payment) to needed details</p> | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| history | <code>history</code> | | ||
40516
191