curl --request POST \
--url https://api.neynar.com/v2/farcaster/frame/transaction/pay/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transaction": {
"to": {
"address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"network": "ethereum",
"token_contract_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"amount": 0.01
}
},
"config": {
"line_items": [
{
"name": "Payment",
"description": "Payment for goods",
"image": "https://i.imgur.com/ovGo3sz.png"
}
],
"allowlist_fids": [
3
],
"action": {
"text": "Pay",
"text_color": "#FFFFFF",
"button_color": "#000000"
}
},
"idem": "<string>"
}
'{
"transaction_frame": {
"id": "<string>",
"url": "<string>",
"type": "pay",
"config": {
"line_items": [
{
"name": "Payment",
"description": "Payment for goods",
"image": "https://i.imgur.com/ovGo3sz.png"
}
],
"allowlist_fids": [
3
],
"action": {
"text": "Pay",
"text_color": "#FFFFFF",
"button_color": "#000000"
}
},
"status": "created",
"transaction": {
"to": {
"address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"network": "ethereum",
"token_contract_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"amount": 0.01
}
}
}
}Creates a new transaction pay mini app that can be used to collect payments through a mini app
curl --request POST \
--url https://api.neynar.com/v2/farcaster/frame/transaction/pay/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transaction": {
"to": {
"address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"network": "ethereum",
"token_contract_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"amount": 0.01
}
},
"config": {
"line_items": [
{
"name": "Payment",
"description": "Payment for goods",
"image": "https://i.imgur.com/ovGo3sz.png"
}
],
"allowlist_fids": [
3
],
"action": {
"text": "Pay",
"text_color": "#FFFFFF",
"button_color": "#000000"
}
},
"idem": "<string>"
}
'{
"transaction_frame": {
"id": "<string>",
"url": "<string>",
"type": "pay",
"config": {
"line_items": [
{
"name": "Payment",
"description": "Payment for goods",
"image": "https://i.imgur.com/ovGo3sz.png"
}
],
"allowlist_fids": [
3
],
"action": {
"text": "Pay",
"text_color": "#FFFFFF",
"button_color": "#000000"
}
},
"status": "created",
"transaction": {
"to": {
"address": "0x5a927ac639636e534b678e81768ca19e2c6280b7",
"network": "ethereum",
"token_contract_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"amount": 0.01
}
}
}
}API key to authorize requests
Show child attributes
Show child attributes
Ethereum address
"0x5a927ac639636e534b678e81768ca19e2c6280b7"
A blockchain network e.g. "ethereum", "optimism", "base", "arbitrum"
ethereum, optimism, base, arbitrum Token contract address for the payment (e.g. 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 is USDC on Base)
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
Amount to send (must be greater than 0)
x >= 1e-80.01
Show child attributes
List of items included in the transaction
1Show child attributes
Name of the line item in transaction
"Payment"
Description of the line item in transaction
"Payment for goods"
Optional image URL for the line item in transaction
"https://i.imgur.com/ovGo3sz.png"
Optional list of FIDs that are allowed to use this transaction mini app
The unique identifier of a farcaster user or app (unsigned integer)
x >= 0Action button for primary CTA on the transaction mini app
An Idempotency key is a unique identifier for the request. Note:
Success
Show child attributes
Unique identifier for the transaction mini app
URL that can be used to access the transaction mini app
Type of transaction mini app
pay Show child attributes
List of items included in the transaction
1Show child attributes
Name of the line item in transaction
"Payment"
Description of the line item in transaction
"Payment for goods"
Optional image URL for the line item in transaction
"https://i.imgur.com/ovGo3sz.png"
Optional list of FIDs that are allowed to use this transaction mini app
The unique identifier of a farcaster user or app (unsigned integer)
x >= 0Action button for primary CTA on the transaction mini app
Show child attributes
created, completed Show child attributes
Show child attributes
Ethereum address
"0x5a927ac639636e534b678e81768ca19e2c6280b7"
A blockchain network e.g. "ethereum", "optimism", "base", "arbitrum"
ethereum, optimism, base, arbitrum Token contract address for the payment (e.g. 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 is USDC on Base)
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
Amount to send (must be greater than 0)
x >= 1e-80.01
Was this page helpful?