Skip to main content

Create Withdrawal Intent

POST 

/api/funding-sources/:fundingSourceId/withdraw

Create a Withdrawal Intent for a given Funding Source.

For more information on Withdrawal Intents see the Card Funding guide

Request

Path Parameters

    fundingSourceId stringrequired

    ID for the Funding Source.

    Example: 2be03cd65da12fe29b8910af7b4b85e7

Body

required

    amount numberrequired

    Withdrawal amount in minor units.

Responses

Successful operation

Schema

    amount number

    Withdrawal amount in minor units.

    id string

    ID of the Withdrawal Intent.

    createdAt string

    Creation date of the Withdrawal Intent.

    expiresAt string

    Expiration date of the Withdrawal Intent.

    walletAddress string

    The wallet address to which the funds will be sent.

    execution

    object

    oneOf

    contractAddress string

    The address of the smart contract

    abi

    object[]

    The JSON ABI of the smart contract (contains only required details. more details here https://docs.soliditylang.org/en/v0.8.19/abi-spec.html#json)

  • Array [

  • type string

    Possible values: [function]

    name string

    The name of the function

    inputs

    object[]

  • Array [

  • name string

    The name of the parameter

    type string

    The type of the parameter

  • ]

  • ]

  • method string

    Smart contract method

    params object

    Smart contract call params. Keys are matching names and order defined in ABI

Loading...