Function signMessage

  • Sign filecoin message

    Parameters

    • privateKey: Uint8Array
    • type: "SECP256K1" | "BLS"
    • message: {
          from: string;
          gasFeeCap: string;
          gasLimit: number;
          gasPremium: string;
          method: number;
          nonce: number;
          params: string;
          to: string;
          value: string;
          version: 0;
      }
      • from: string
      • gasFeeCap: string
      • gasLimit: number
      • gasPremium: string
      • method: number
      • nonce: number
      • params: string
      • to: string
      • value: string
      • version: 0

    Returns Signature