salt-sdk - v0.0.45
    Preparing search index...

    Type Alias FeeTerms

    What a 402 asked to be paid, narrowed to the fields a caller acts on.

    Declared here rather than re-exported from @x402/core so that depending on this SDK doesn't mean depending on the x402 packages' types.

    type FeeTerms = {
        amount: string;
        asset: string;
        chainId?: number;
        network: string;
        payTo: string;
    }
    Index
    amount: string

    Amount in the asset's smallest unit.

    asset: string

    Token the fee is paid in.

    chainId?: number

    EVM chain id parsed out of network, or undefined when the network isn't eip155. The wallet signing the payment must be on this chain — a wallet refuses typed data whose domain names a chain it isn't on.

    network: string

    CAIP-2 network the fee is paid on, e.g. eip155:421614.

    payTo: string

    Who the transfer is authorised to.