GET
/
v1
/
request
/
{paymentReference}
/
pay
Get payment calldata
curl --request GET \
  --url https://api.request.network/v1/request/{paymentReference}/pay \
  --header 'x-api-key: <x-api-key>'
{
"transactions": [
{
"data": "0xb868980b...00",
"to": "0x11BF2fDA23bF0A98365e1A4e04A87C9339e8687",
"value": {
"type": "BigNumber",
"hex": "0x038d7ea4c68000"
}
}
],
"metadata": {
"stepsRequired": 1,
"needsApproval": false,
"approvalTransactionIndex": null,
"hasEnoughBalance": true,
"hasEnoughGas": true
}
}

Headers

x-api-key
string
required

API key for authentication

Path Parameters

paymentReference
string
required

The payment reference of the request

Example:

"0xb3581f0b0f74cc61"

Query Parameters

wallet
string

The wallet address of the payer.

Example:

"0x6923831ACf5c327260D7ac7C9DfF5b1c3cB3C7D7"

chain
enum<string>

The source chain of the crosschain payment

Available options:
BASE,
OPTIMISM,
ARBITRUM,
ETHEREUM
token
enum<string>

The source token of the crosschain payment

Available options:
USDC,
USDT,
DAI
amount
string

The amount to pay, in human readable format

Response

Payment calldata retrieved successfully

Response for same-chain payments with transaction calldata

transactions
object[]
required

Array of transactions to execute for the payment

metadata
object
required

Metadata about the payment requirements