msig

Multisig methods

createMsigParams

Encodes the message's params required to create a multisig.

Parameters

Parameter

Type

Description

addresses

string[]

Addresses of the signers.

requiredNumberOfApprovals

number

Required number of approvals.

unlockDuration

number

Duration threshold to unlock.

startEpoch

number

Initial epoch

codeCID

string

CID of the Multisig Actor

createMultisigMsg

Creates a create multisig message.

Parameters

Parameter

Type

Description

from

string

FIL address of the sender

addresses

string[]

Addresses of the signers.

amount

BigNumber

The amount of FIL to send

requiredNumberOfApprovals

number

Required number of approvals.

nonce

number

The nonce of the sender's account

unlockDuration

number

Duration threshold to unlock.

startEpoch

number

Initial epoch

network

"mainnet"|"testnet"

codeCID

string

CID of the Multisig Actor

proposeMsigMsgParams

Encodes the message's params required to propose a multisig

Parameters

Parameter

Type

Description

to

string

Recipient's FIL address

amount

BigNumber

FIL amount to propose

proposeMultisigMsg

Creates propose multisig message

Parameters

Parameter

Type

Description

multisigAddress

string

Address of the created multisig

from

string

FIL address of the sender

to

string

Recipient's FIL address

amount

BigNumber

FIL amount to propose

nonce

number

The nonce of the sender's account

approveOrCancelMsigMsgParams

Encodes the message's params required to approve/cancel a multisig.

Parameters

Parameter

Type

Description

messageId

number

Id of the transaction

requester

string

FIL address of the requester

to

string

Recipient's FIL address

amount

BigNumber

FIL amount to propose

approveMultisigMsg

Creates a message to approve multisig

Parameters

Parameter

Type

Description

multisigAddress

string

Address of the created multisig

messageId

number

Id of the transaction

requester

string

FIL address of the requester

from

string

Sender's FIL address

to

string

Recipient's FIL address

amount

BigNumber

FIL amount to propose

nonce

number

Sender's nonce

cancelMultisigMsg

Creates a message to cancel multisig.

Parameters

Parameter

Type

Description

multisigAddress

string

Address of the created multisig

messageId

number

Id of the transaction

requester

string

FIL address of the requester

from

string

Sender's FIL address

to

string

Recipient's FIL address

amount

BigNumber

FIL amount to propose

nonce

number

Sender's nonce

Last updated