Module: stayge-wallet/icon-js/tx

Provides transaction related functions for ICON

Source:

Methods


<static> makeIcxRawTx(data, nid)

Make a raw transaction for ICX

Parameters:
Name Type Description
data Object
nid String
Source:
Returns:
Type
Object

<static> signRawTx(privateKey, rawTx)

Sign a raw transaction

Parameters:
Name Type Description
privateKey Buffer
rawTx Object
Source:
Returns:
Type
Object

<inner> concatTypedArrays(a, b)

Concatenate two typed arrays

Parameters:
Name Type Description
a TypedArray
b TypedArray
Source:
Returns:
Type
Buffer

<inner> escapeString(value)

Escape a string for transaction

Parameters:
Name Type Description
value String
Source:
Returns:
Type
String

<inner> generateHashKey(obj)

Generate a hash key for transaction

Parameters:
Name Type Description
obj Object
Source:
Returns:
Type
String

<inner> serializeArray(arr)

Serialize a array for transaction

Parameters:
Name Type Description
arr Array
Source:
Returns:
Type
String

<inner> serializeObj(obj)

Serialize a object for transaction

Parameters:
Name Type Description
obj Object
Source:
Returns:
Type
String