Filecoin Message class

Constructors

  • Parameters

    • msg: {
          from: string;
          gasFeeCap?: string;
          gasLimit?: number;
          gasPremium?: string;
          method?: number;
          nonce?: number;
          params?: string;
          to: string;
          value: string;
          version?: 0;
      }
      • from: string
      • OptionalgasFeeCap?: string
      • OptionalgasLimit?: number
      • OptionalgasPremium?: string
      • Optionalmethod?: number
      • Optionalnonce?: number
      • Optionalparams?: string

        Params encoded as base64pad

      • to: string
      • value: string

        Value in attoFIL

      • Optionalversion?: 0

    Returns Message

Properties

from: string
gasFeeCap: string
gasLimit: number
gasPremium: string
method: number
nonce: number
params: string
to: string
value: string
version: 0

Methods

  • Convert message to Lotus message

    Returns {
        From: string;
        GasFeeCap: string;
        GasLimit: number;
        GasPremium: string;
        Method: number;
        Nonce: number;
        Params: string;
        To: string;
        Value: string;
        Version: 0;
    }