Gas

gasEstimateFeeCap

gasEstimateFeeCap (message: Message, int: number, tipSetKey: Cid[]): Promise<string>

Estimates gas fee cap

Parameters:

Returns:

Promise<string>

Source: index.d.ts, line 356, character 19

gasEstimateGasLimit

gasEstimateGasLimit (message: Message, tipSetKey: Cid[]): Promise<number>

Estimates gas used by the message and returns it. It fails if message fails to execute.

Parameters:

Returns:

Promise<number>

Source: index.d.ts, line 361, character 21

gasEstimateGasPremium

gasEstimateGasPremium (uint: number, address: string, int: number, tipSetKey: Cid[]): Promise<string>

Estimates what gas price should be used for a message to have high likelihood of inclusion in nblocksincl epochs.

Parameters:

  • uint: number
  • address: string
  • int: number
  • tipSetKey: Cid[]

Returns:

Promise<string>

Source: index.d.ts, line 366, character 23

gasEstimateMessageGas

gasEstimateMessageGas (message: Message, messageSendSpec: MessageSendSpec, tipSetKey: Cid[]): Promise<Message>

Estimates gas values for unset message gas fields

Parameters:

Returns:

Promise<Message>

Source: index.d.ts, line 370, character 23