Skip to main content
POST
/
v1
/
gateway
/
payment
/
{id}
/
fetch
Fetch an action
curl --request POST \
  --url https://api.pay.walletconnect.com/v1/gateway/payment/{id}/fetch \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Sdk-Name: <sdk-name>' \
  --header 'Sdk-Platform: <sdk-platform>' \
  --header 'Sdk-Version: <sdk-version>' \
  --data '
{
  "data": "...",
  "optionId": "opt_123"
}
'
{
  "actions": [
    {
      "data": {
        "chain_id": "eip155:8453",
        "method": "eth_signTypedData_v4",
        "params": [
          "0x0000000000000000000000000000000000000000",
          "{\"domain\":{\"name\":\"USD Coin\",\"version\":\"2\",\"chainId\":\"0x2105\",\"verifyingContract\":\"0x0000000000000000000000000000000000000000\"},\"types\":{\"EIP712Domain\":[{\"type\":\"string\",\"name\":\"name\"},{\"type\":\"string\",\"name\":\"version\"},{\"type\":\"uint256\",\"name\":\"chainId\"},{\"type\":\"address\",\"name\":\"verifyingContract\"}],\"TransferWithAuthorization\":[{\"type\":\"address\",\"name\":\"from\"},{\"type\":\"address\",\"name\":\"to\"},{\"type\":\"uint256\",\"name\":\"value\"},{\"type\":\"uint256\",\"name\":\"validAfter\"},{\"type\":\"uint256\",\"name\":\"validBefore\"},{\"type\":\"bytes32\",\"name\":\"nonce\"}]},\"primaryType\":\"TransferWithAuthorization\",\"message\":{\"from\":\"0x0000000000000000000000000000000000000000\",\"nonce\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"to\":\"0x0000000000000000000000000000000000000000\",\"validAfter\":\"0x0\",\"validBefore\":\"0x0\",\"value\":\"0x0\"}}"
        ]
      },
      "type": "walletRpc"
    }
  ]
}

Authorizations

Api-Key
string
header
required

Headers

Api-Key
string
required
Sdk-Name
string
required
Sdk-Version
string
required
Sdk-Platform
string
required

Path Parameters

id
string
required

Payment ID

Body

application/json
data
string
required

Extra data to be passed

optionId
string
required

ID of the option to build an action for

Response

Action built successfully

actions
object[]
required

An action that requires a wallet RPC call to complete