transactionsApi

transactionsApi

new transactionsApi()

Source:

Represents a transactionsApi.

Methods

buildPayment(params) → {promise}

Source:

Build Payment.

Parameters:
Name Type Description
params Object

Parameters for build payment.

Properties
Name Type Description
guid String

Account Guid.

asset String

Asset ID.

amount Number

Amount in neu.

to String

send to address

fee Number

Gas fee.

confirmations Number

Confirmations.

Returns:

Object with raw_transaction, signing_instructions, fee

Type
promise

buildTransaction(params) → {promise}

Source:

Build transaction.

Parameters:
Name Type Description
params Object

Parameters for build transaction.

Properties
Name Type Description
guid String

Account Guid.

asset String

Asset ID.

inputs Array.<Object>

Amount in neu.

outputs Array.<Object>

send to address

fee Number

Gas fee.

confirmations Number

Confirmations.

Returns:

Object with raw_transaction, signing_instructions, fee

Type
promise

convertArguement(obj)

Source:

convert contract argument.

Parameters:
Name Type Description
obj Object

Argument Object

Properties
Name Type Description
type String

Argument Type, included data, address, string, integer, boolean.

raw_data Object

Object Raw Data

Properties
Name Type Description
value String | Number | Boolean

data value

list(params)

Source:

List local transactions by id.

Parameters:
Name Type Description
params Object

list transactions with account information.

Properties
Name Type Description
Guid String

Transaction related account id.

filter Object

Optional, filter condition amount or time.

sort String

Optional, sort condition.

submit(params) → {promise}

Source:
See:

Submit a signed transaction to the blockchain.

Parameters:
Name Type Description
params Object

Parameters for build payment.

Properties
Name Type Description
guid String

Account Id.

raw_transaction String

raw_transaction of signed transaction.

signatures Array.<String>

transaction signature

memo String

custom memo that only saved in the server.

Returns:

transaction_hash

Type
promise