Transaction Details by Hash
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/onchain/tximport requests
url = "https://api.asksurf.ai/gateway/v1/onchain/tx"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/onchain/tx', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"accessList": [
{
"address": "<string>",
"storageKeys": [
"<string>"
]
}
],
"blockHash": "<string>",
"blockNumber": "<string>",
"from": "<string>",
"gas": "<string>",
"hash": "<string>",
"input": "<string>",
"nonce": "<string>",
"r": "<string>",
"s": "<string>",
"to": "<string>",
"transactionIndex": "<string>",
"type": "<string>",
"v": "<string>",
"value": "<string>",
"blobVersionedHashes": [
"<string>"
],
"chainId": "<string>",
"gasPrice": "<string>",
"maxFeePerBlobGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"yParity": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponseOnchainTxItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Onchain
Transaction Details
GET
/
gateway
/
v1
/
onchain
/
tx
Transaction Details by Hash
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/onchain/tximport requests
url = "https://api.asksurf.ai/gateway/v1/onchain/tx"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/onchain/tx', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"accessList": [
{
"address": "<string>",
"storageKeys": [
"<string>"
]
}
],
"blockHash": "<string>",
"blockNumber": "<string>",
"from": "<string>",
"gas": "<string>",
"hash": "<string>",
"input": "<string>",
"nonce": "<string>",
"r": "<string>",
"s": "<string>",
"to": "<string>",
"transactionIndex": "<string>",
"type": "<string>",
"v": "<string>",
"value": "<string>",
"blobVersionedHashes": [
"<string>"
],
"chainId": "<string>",
"gasPrice": "<string>",
"maxFeePerBlobGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"yParity": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponseOnchainTxItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}