📍ftm.signTransaction()
Description: Signs a transaction using the sender's private key.
Parameters
Name
Type
Description
object
object
The transaction object containing the following fields:
from
string
The address the transaction is sent from.
to
string
(optional)
The address the transaction is directed to (not required for contract creation).
gas
integer
(default: 90000)
The gas provided for transaction execution.
gasprice
integer
Gas price used for each paid gas, in Wei.
value
integer
Value sent with this transaction, in Wei.
data
string
The compiled contract code OR the hash of the invoked method signature and encoded parameters.
nonce
integer
A nonce value to prevent transaction replay and allow overwriting pending transactions.
Returns
Type
Description
result
The signed transaction object.
Last updated