Avalanche SDK Client
    Preparing search index...

    Type Alias AvalanchePublicActions

    type AvalanchePublicActions = {
        baseFee: () => Promise<BaseFeeReturnType>;
        feeConfig: (args: FeeConfigParameters) => Promise<FeeConfigReturnType>;
        getActiveRulesAt: (args: GetActiveRulesAtParameters) => Promise<GetActiveRulesAtReturnType>;
        getChainConfig: () => Promise<GetChainConfigReturnType>;
        maxPriorityFeePerGas: () => Promise<MaxPriorityFeePerGasReturnType>;
    }
    Index

    Properties

    baseFee: () => Promise<BaseFeeReturnType>

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: { type: "http" },
    })

    const baseFee = await client.baseFee()
    feeConfig: (args: FeeConfigParameters) => Promise<FeeConfigReturnType>

    Get the fee config for a specific block.

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: { type: "http" },
    })

    const feeConfig = await client.feeConfig({ blk: "0x1" })
    getActiveRulesAt: (args: GetActiveRulesAtParameters) => Promise<GetActiveRulesAtReturnType>

    Get the active rules at a specific timestamp.

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: { type: "http" },
    })

    const activeRules = await client.getActiveRulesAt({ timestamp: "0x1" })
    getChainConfig: () => Promise<GetChainConfigReturnType>

    Get the chain configuration for the C-Chain.

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: {
    type: "http",
    },
    })

    const chainConfig = await client.getChainConfig()
    maxPriorityFeePerGas: () => Promise<MaxPriorityFeePerGasReturnType>

    Get the priority fee needed to be included in a block.

    Type declaration

    import { createAvalancheClient} from '@avalanche-sdk/client'
    import { avalanche } from '@avalanche-sdk/client/chains'

    const client = createAvalancheClient({
    chain: avalanche,
    transport: {
    type: "http",
    },
    })

    const maxPriorityFee = await client.maxPriorityFeePerGas()