Fetches an action
Builds the actions the wallet must complete to pay with the selected payment option (optionId). Select each action by its type, not by its position in actions.
POST
header
Api-Key<token>id*stringPayment ID
Api-Key?string|nullApp-Id?string|nullClient-Id?string|nullWCP-Version?string|nullSdk-Name?string|nullSdk-Version?string|nullSdk-Platform?string|nullapplication/json- body
collectedData?||nulldata*stringExtra build payload
optionId*stringID of the option to build an action for
Action built successfully
application/json- response
actions*array<||>What the wallet has to do, never empty. Select an action by its type, not
by its position: a push option returns a transfer alongside its
walletRpc transaction on EVM, and on Solana returns the transfer alone,
because a Solana transaction cannot be built without knowing the payer.
curl -X POST 'https://api.pay.walletconnect.com/v1/gateway/payment/pay_7fa2ecc101ARZ3NDEKTSV4RRFFQ69G5FAV/fetch' \ -H 'Content-Type: application/json' \ -d '{ "data": "string", "optionId": "string"}'{ "actions": [ { "data": { "chain_id": "string", "method": "string", "params": [ null ] }, "type": "walletRpc" } ]}