Payer API
POST
/v2/pay/{id}/submitSubmit a transaction hash
Links a crypto transaction hash to the intent's quote (for EVM based crypto)
Path Parameters
idstringrequiredID of the payment intent
Request Body
cryptostringrequiredCrypto of the quote being paid.
txhashstringrequiredHash of the paying transaction.
Responses
idpath · stringrequiredID of the payment intent
cryptobody · stringrequiredCrypto of the quote being paid.
txhashbody · stringrequiredHash of the paying transaction.
Response will appear here
Request
curl -X POST \
"https://www.blockonomics.co/api/v2/pay/pi_5GfD5m1b8khzFSLza91VR6/submit" \
-H "Content-Type: application/json"const response = await fetch('https://www.blockonomics.co/api/v2/pay/pi_5GfD5m1b8khzFSLza91VR6/submit', {
method: 'POST',
headers: {
}
})
const data = await response.json()
console.log(data)import requests
headers = {}
response = requests.post(
"https://www.blockonomics.co/api/v2/pay/pi_5GfD5m1b8khzFSLza91VR6/submit",
headers=headers
)
print(response.json())