Transaction
Classes
Typedefs
TransactionMeta : CallRequest
Transaction
Kind: global class
instance
.hash ⇒
string
|undefined
.recover() ⇒
string
.encode([includeSignature]) ⇒
Buffer
.serialize() ⇒
string
static
new Transaction(options)
Create a transaction.
transaction.hash ⇒ string
| undefined
string
| undefined
Getter of transaction hash include signature.
Note: calculate every time.
Kind: instance property of Transaction
Returns: string
| undefined
- If transaction has r,s,v return hex string, else return undefined.
transaction.sign(privateKey, networkId) ⇒ Transaction
Transaction
Sign transaction and set 'r','s','v'.
Kind: instance method of Transaction
transaction.recover() ⇒ string
string
Recover public key from signed Transaction.
Kind: instance method of Transaction
transaction.encode([includeSignature]) ⇒ Buffer
Buffer
Encode rlp.
Kind: instance method of Transaction
transaction.serialize() ⇒ string
string
Get the raw transaction hex string.
Kind: instance method of Transaction
Returns: string
- Hex string
Transaction.decodeRaw(raw) ⇒ Transaction
Transaction
Decode rlp encoded raw transaction hex string
Kind: static method of Transaction
Returns: Transaction
- A Transaction instance
TransactionMeta : CallRequest
CallRequest
Kind: global typedef
Last updated