1.0.34 • Published 2 years ago

amp-wallet v1.0.34

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Amanatpay Wallet Operation

Functions

getAllAccountBalances(publicKey) ⇒ Array.<object>

Kind: global function
Returns: Array.<object> - returns array of all balance objects

ParamTypeDescription
publicKeystringWallet public key

isWalletExists(publicKey) ⇒ boolean

Kind: global function

ParamTypeDescription
publicKeystringWallet public key

getWallet(publicKey) ⇒ AccountResponse

Kind: global function
Returns: AccountResponse - class of AmanatPay Blockchain account

ParamTypeDescription
publicKeystringWallet public key

sendPayment(senderWallet, receiver, amount, asset, issuerAccount, memo, validateWallet)

Kind: global function

ParamTypeDefaultDescription
senderWalletSimpleAccountObjsource/sender Wallet you want to transfer payment from
receiverstringwallet ID (public key) of receiving party
amountnumberamount
assetstringasset you want to transfer
issuerAccountstringtoken issuer account public key
memostringnullable if you need send transfer descriptions
validateWalletbooleanfalseit is false by default, if you need to function do validation of wallets turn true

loadFriendBot(pub) ⇒ Axios

Kind: global function
Returns: Axios - return axios response

ParamTypeDescription
pubstringget public key

createWallet(distpub)

Kind: global function

ParamTypeDescription
distpubstringdisturber secret key to load 1000 native gas into the account

History(pub)

Kind: global function

ParamTypeDescription
pubstringpublic key

createAsset()

Kind: global function

getWalletObj(publicKey) ⇒ AccountResponse

Kind: global function
Returns: AccountResponse - wallet object on Amanatpay blockchain

ParamTypeDescription
publicKeystringwallet public key

getAllBalances(wallet) ⇒ array

Kind: global function
Returns: array - array of balances

ParamTypeDescription
walletAccountResponsewallet as Amanatpay blockchain object

createPair() ⇒ SimpleAccountObj

Kind: global function

createAccount(distSecret) ⇒

Kind: global function
Returns: (object} accountDetails: direct return from blockchain key: keypair , public and private keys

ParamTypeDescription
distSecretstringdisturber account secret key

friendbot(pub)

Kind: global function

ParamTypeDescription
pubstringpublic key for any wallet

transactionHistory(pub) ⇒ object

Kind: global function
Returns: object - list of all wallet's transactions

ParamTypeDescription
pubstringwallet public key

convertTransactionHistory(history)

Kind: global function

ParamType
historyhistory

setupIssuer(Issuer) ⇒

Kind: global function
Returns: transaction server transaction result

ParamType
Issuerstring

createTrustLine(issuer, account, asset) ⇒

Kind: global function
Returns: transaction server transaction result

ParamTypeDescription
issuerkeyPairobject of publicKey and secret
accountkeyPairobject of publicKey and secret
assetkeyPairobject of publicKey and secret
1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago