Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
amp-wallet
Advanced tools
Array.<object>
Description: return all wallet's balances includes asset's type
boolean
Description: confirm the wallet's existence in AmanatPay Blockchain
AccountResponse
Description: get single wallet in details.
Description: send payment through Amanatpay blockchain network, using multiple assets.
Axios
load 1000 friend bot to wallet if it's native balance is below 100
create new wallet and load 1000 native gas
Wallet's transactions for all assets
CREATE an asset that's are include issue account and distributor
AccountResponse
get wallet's object from Amanatpay blockchain
array
return array of wallet's balances of different assets
SimpleAccountObj
Create a key pair for creating account
creat account
load gas from friend-bot
object
Wallet's transactions for all assets
convert raw transactions list ( payment) to needed details
change account options for Issuer account( new assets)
create trust-line in between issuer account , asset and account
Array.<object>
Description: return all wallet's balances includes asset's type
Kind: global function
Returns: Array.<object>
-
returns array of all balance objects
Param | Type | Description |
---|---|---|
publicKey | string | Wallet public key |
boolean
Description: confirm the wallet's existence in AmanatPay Blockchain
Kind: global function
Param | Type | Description |
---|---|---|
publicKey | string | Wallet public key |
AccountResponse
Description: get single wallet in details.
Kind: global function
Returns: AccountResponse
-
class of AmanatPay Blockchain account
Param | Type | Description |
---|---|---|
publicKey | string | Wallet public key |
Description: send payment through Amanatpay blockchain network, using multiple assets.
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
senderWallet | SimpleAccountObj | source/sender Wallet you want to transfer payment from | |
receiver | string | wallet ID (public key) of receiving party | |
amount | number | amount | |
asset | string | asset you want to transfer | |
issuerAccount | string | token issuer account public key | |
memo | string | nullable if you need send transfer descriptions | |
validateWallet | boolean | false | it is false by default, if you need to function do validation of wallets turn true |
Axios
load 1000 friend bot to wallet if it's native balance is below 100
Kind: global function
Returns: Axios
-
return axios response
Param | Type | Description |
---|---|---|
pub | string | get public key |
create new wallet and load 1000 native gas
Kind: global function
Param | Type | Description |
---|---|---|
distpub | string | disturber secret key to load 1000 native gas into the account |
Wallet's transactions for all assets
Kind: global function
Param | Type | Description |
---|---|---|
pub | string | public key |
CREATE an asset that's are include issue account and distributor
AccountResponse
get wallet's object from Amanatpay blockchain
Kind: global function
Returns: AccountResponse
-
wallet object on Amanatpay blockchain
Param | Type | Description |
---|---|---|
publicKey | string | wallet public key |
array
return array of wallet's balances of different assets
Kind: global function
Returns: array
-
array of balances
Param | Type | Description |
---|---|---|
wallet | AccountResponse | wallet as Amanatpay blockchain object |
SimpleAccountObj
Create a key pair for creating account
creat account
Kind: global function
Returns:
(object} accountDetails: direct return from blockchain key: keypair , public and private keys
Param | Type | Description |
---|---|---|
distSecret | string | disturber account secret key |
load gas from friend-bot
Kind: global function
Param | Type | Description |
---|---|---|
pub | string | public key for any wallet |
object
Wallet's transactions for all assets
Kind: global function
Returns: object
-
list of all wallet's transactions
Param | Type | Description |
---|---|---|
pub | string | wallet public key |
convert raw transactions list ( payment) to needed details
Kind: global function
Param | Type |
---|---|
history | history |
change account options for Issuer account( new assets)
Kind: global function
Returns:
transaction server transaction result
Param | Type |
---|---|
Issuer | string |
create trust-line in between issuer account , asset and account
Kind: global function
Returns:
transaction server transaction result
Param | Type | Description |
---|---|---|
issuer | keyPair | object of publicKey and secret |
account | keyPair | object of publicKey and secret |
asset | keyPair | object of publicKey and secret |
FAQs
Amanatpay Blockchain Wallet
The npm package amp-wallet receives a total of 33 weekly downloads. As such, amp-wallet popularity was classified as not popular.
We found that amp-wallet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.