tx

Transactions RPC methods

sendMessage

Sends a custom Message.

Parameters

Parameter

Type

Description

message

Message

Custom unsigned Message

privateKey

PrivateKey

Private Key encoded in hex or base64

updateMsgNonce

boolean

Boolean indicating whether the message's nonce should be updated or not

waitMsg

boolean

Boolean indicating whether to wait for the message to confirm or not

send

Sends FIL to recipient.

Parameters

Parameter

Type

Description

to

string

The recipient's address

amount

BigNumber

The amount of FIL to send

gasLimit

number

The Message's gas limit to use

privateKey

PrivateKey

Private Key encoded in hex or base64

network

Network

mainnet or testnet

waitMsg

boolean

Boolean indicating whether to wait for the message to confirm or not

Last updated

Was this helpful?