Estimate Gas
Method signature
public async estimateGas<C extends SpokeChainKey>(
params: EstimateGasParams<C>,
): Promise<Result<GetEstimateGasReturnType<C>>>export type EstimateGasParams<C extends SpokeChainKey> = {
tx: TxReturnType<C, true>; // the raw tx payload from a raw: true call
chainKey: C; // the chain key the transaction is for
};Return type: GetEstimateGasReturnType<C>
GetEstimateGasReturnType<C>Chain family
Type
Notes
raw: true / raw: false — the WalletProviderSlot<K, Raw> constraint
raw: true / raw: false — the WalletProviderSlot<K, Raw> constraintChainKeys.* constants
ChainKeys.* constantsError handling: Result<T>
Result<T>Examples
Last updated