Keeta LogoKeeta Logo@keetanetwork/keetanet-client
    Preparing search index...

    Interface AcceptSwapRequest

    interface AcceptSwapRequest {
        block: Block;
        expected?:
            | AcceptSwapRequestExpectedDeprecated
            | {
                receive?: { amount?: bigint; token?: TokenAddress };
                send?: { amount?: bigint; token?: TokenAddress };
            };
    }
    Index

    Properties

    Properties

    block: Block
    expected?:
        | AcceptSwapRequestExpectedDeprecated
        | {
            receive?: { amount?: bigint; token?: TokenAddress };
            send?: { amount?: bigint; token?: TokenAddress };
        }

    The expected parameters for the swap acceptance, to validate the swap, or to modify the send parameters

    Type declaration

    • AcceptSwapRequestExpectedDeprecated
    • {
          receive?: { amount?: bigint; token?: TokenAddress };
          send?: { amount?: bigint; token?: TokenAddress };
      }
      • Optionalreceive?: { amount?: bigint; token?: TokenAddress }

        Validate the receive parameters (what the other party is sending) for the swap acceptance

      • Optionalsend?: { amount?: bigint; token?: TokenAddress }

        Validate or change the send parameters for the swap acceptance

        • Optionalamount?: bigint

          If provided, will attempt to send this amount instead of the minimum required amount

        • Optionaltoken?: TokenAddress

          If provided, will assert that the other party is expecting to receive this token