Methods
buildPayment(guid, to, asset, amount, from, fee) → {Promise}
- Source:
- See:
Build a raw transaction transfered from the wallet. May use all available addresses (under the wallet) as source addresses if not specified.
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | unique id for each wallet |
to |
String | destination address |
asset |
String | hexdecimal asset id |
amount |
Number | transfer amount |
from |
String | source address |
fee |
Number | transaction fee amount |
Returns:
- Type
- Promise
buildTransaction(guid, fee) → {Promise}
- Source:
Advanced Build a raw transaction transfered from the wallet. May use all available addresses (under the wallet) as source addresses if not specified.
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | unique id for each wallet |
fee |
Number | transaction fee amount |
Returns:
- Type
- Promise
convertArgument(type, value)
- Source:
Convert arguement.
Parameters:
Name | Type | Description |
---|---|---|
type |
String | type. |
value |
String | value. |
list(guid, address, start, limit) → {Promise}
- Source:
- See:
List all the transactions related to a wallet or an address.
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | unique id for each wallet |
address |
String | (optional) if provided, will only return transactions the address is related to |
start |
Number | page start |
limit |
Number | page limit |
Returns:
- Type
- Promise
signTransaction(guid, transaction, password) → {Object}
- Source:
sign transaction
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | |
transaction |
String | |
password |
String |
Returns:
signed data
- Type
- Object
submitPayment(guid, raw_transaction, signatures)
- Source:
- See:
Submit a signed transaction to the chain.
Parameters:
Name | Type | Description |
---|---|---|
guid |
String | unique id for each wallet |
raw_transaction |
String | raw transaction bytes encoded to string |
signatures |
Array | signed data of each signing instruction |