Suggest Gas Price
Kriptonio SDK provides a method to suggest a gas price based on the current network conditions.
import { ChainId, KriptonioSdk } from '@kriptonio/sdk';
const sdk = new KriptonioSdk({
accessToken: 'your-access-token',
});
const wallet = await sdk.wallet.generate({
chainId: ChainId.BaseSepolia,
type: 'kernel',
});
const feeData = await wallet.getFeeData();
console.log('max fee per gas', feeData.maxFeePerGas);
console.log('max priority fee per gas', feeData.maxPriorityFeePerGas);