📍ftm.fillTransaction()

Description: Prepares a transaction by filling in any missing parameters and returning the raw transaction data.

Parameters

Name

Type

Description

txObj

object

The transaction object to send, with the following fields:

from

string

The address for the sending account.

to

string (optional)

The destination address of the message.

value

integer (optional)

The value transferred for the transaction in Wei (also the endowment if it's a contract-creation transaction).

data

string (optional)

A byte string containing the associated message data, or in the case of a contract-creation transaction, the initialization code.

privateFor

array (optional)

When sending a private transaction, an array of the recipients’ base64-encoded public keys.

Returns

Type

Description

raw

RLP-encoded bytes for the passed transaction object.

tx

The transaction object.

Last updated