Class: SymbolFacade

SymbolFacade(symbolNetworkName)

Facade used to interact with Symbol blockchain.

Constructor

new SymbolFacade(symbolNetworkName)

Creates a Symbol facade.
Parameters:
Name Type Description
symbolNetworkName string Symbol network name.
Source:

Methods

(static) bip32NodeToKeyPair(bip32Node) → {KeyPair}

Derives a Symbol KeyPair from a BIP32 node.
Parameters:
Name Type Description
bip32Node Bip32Node BIP32 node.
Source:
Returns:
Derived key pair.
Type
KeyPair

(static) hashEmbeddedTransactions(embeddedTransactions) → {Hash256}

Hashes embedded transactions of an aggregate."""
Parameters:
Name Type Description
embeddedTransactions array.<object> Embedded transactions to hash.
Source:
Returns:
Aggregate transactions hash.
Type
Hash256

hashTransaction(transaction) → {Hash256}

Hashes a Symbol transaction.
Parameters:
Name Type Description
transaction object Transaction object.
Source:
Returns:
Transaction hash.
Type
Hash256

signTransaction(keyPair, transaction) → {Signature}

Signs a Symbol transaction.
Parameters:
Name Type Description
keyPair KeyPair Key pair.
transaction object Transaction object.
Source:
Returns:
Transaction signature.
Type
Signature

verifyTransaction(transaction, signature) → {boolean}

Verifies a Symbol transaction.
Parameters:
Name Type Description
transaction object Transaction object.
signature Signature Signature to verify.
Source:
Returns:
true if transaction signature is verified.
Type
boolean