paych

Payment channel RPC methods

createPaymentChannel

Creates the payment channel in the network.

Parameters

Parameter

Type

Description

from

string

The FIL address of the sender

to

string

The recipient's address

amount

BigNumber

The amount of FIL to send

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

settlePaymentChannel

Creates the message to settle the payment channel.

Parameters

Parameter

Type

Description

paymentChannelAddress

string

The address of the payment channel

from

string

The FIL address of the sender

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

updatePaymentChannel

Updates the payment channel.

Parameters

Parameter

Type

Description

paymentChannelAddress

string

The address of the payment channel

from

string

The FIL address of the sender

signedVoucher

string

Signed voucher encoded in base64

secret

string

The hashed secret required to redeem the voucher

privateKey

PrivateKey

Private Key encoded in hex or base64

waitMsg

boolean

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

collectPaymentChannel

Updates the payment channel.

Parameters

Parameter

Type

Description

paymentChannelAddress

string

The address of the payment channel

from

string

The FIL address of the sender

privateKey

PrivateKey

Private Key encoded in hex or base64

waitMsg

boolean

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

Last updated