GetTransactionHistory
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"accountAddress": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4"
}
'import requests
url = "https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory"
payload = { "accountAddress": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4" }
headers = {
"X-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({accountAddress: '0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4'})
};
fetch('https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accountAddress' => '0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Access-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory"
payload := strings.NewReader("{\n \"accountAddress\": \"0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Access-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory")
.header("X-Access-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accountAddress\": \"0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Access-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountAddress\": \"0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4\"\n}"
response = http.request(request)
puts response.read_body{
"page": {
"after": "rmExGgC37OVhMnhCMHhiMjMzM2NlNDliNzlmMzcyOGUwYWFjNzNlNGMwNzYzYmVjODBlYmVmZGViZWZlOWU1ZDVmZGNiNWVmNzMyZWE2YTN4KjB4ZTZlYjI4Mzk4Y2NiZTQ2YWE1MDViNjJiOTY4MjJjMmNlOGRhYWJmNGE0eCoweGRkOTAxMjY4NTY5NTdhYTFlOWM1Y2MzMzk1ZTg2NmI2ZWI4MzBhNDRhNQJhNngqMHgwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwYTd4KjB4ZTZlYjI4Mzk4Y2NiZTQ2YWE1MDViNjJiOTY4MjJjMmNlOGRhYWJmNGE4eEIweDJkNmFiZmE1MTI2NDRmYzVjMjY2Nzk2ZTg4MzMxYmY0MWNhZDc1YWFlMjE4ZDQxODk0ODU1MzU4ZDhjODlhMGRhOQBhYQFhYmBhZIFDIjAiYWWBRCI2MiJhYxpm6I0N",
"pageSize": 10,
"more": true
},
"transactions": [
{
"txnHash": "0x64628263b93ccad7dfd6fb1a81f1bcdadd0eb89649e0a43bdf65f639fddcd319",
"blockNumber": 12215569,
"blockHash": "0x05a4b055603a0b0cdb9e0d1bc28088bb4fca79a83d32bdc4a98d665e06ae7564",
"chainId": 80002,
"metaTxnID": null,
"transfers": [
{
"transferType": "RECEIVE",
"contractAddress": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"contractType": "ERC20",
"from": "0x0000000000000000000000000000000000000000",
"to": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4",
"tokenIds": [
"0"
],
"amounts": [
"33"
],
"logIndex": 9,
"contractInfo": {
"chainId": 80002,
"address": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"name": "Oracle Token",
"type": "ERC20",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "",
"ogImage": "",
"originChainId": 0,
"originAddress": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"verified": true,
"verifiedBy": "Sequence Builder"
},
"updatedAt": "0001-01-01T00:00:00Z"
}
}
],
"timestamp": "2024-09-20T20:36:45Z"
},
{
"txnHash": "0x5aae198a65b993a767bd495ea77b7825e0e884d9dcc446a1515097eb962814d6",
"blockNumber": 12213913,
"blockHash": "0x726ccdee4ef384493f96c666e959258ba70689bd6553c098a51542b2627a8b22",
"chainId": 80002,
"metaTxnID": null,
"transfers": [
{
"transferType": "RECEIVE",
"contractAddress": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"contractType": "ERC20",
"from": "0x0000000000000000000000000000000000000000",
"to": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4",
"tokenIds": [
"0"
],
"amounts": [
"1000"
],
"logIndex": 1,
"contractInfo": {
"chainId": 80002,
"address": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"name": "Oracle Token",
"type": "ERC20",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "",
"ogImage": "",
"originChainId": 0,
"originAddress": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"verified": true,
"verifiedBy": "Sequence Builder"
},
"updatedAt": "0001-01-01T00:00:00Z"
}
}
],
"timestamp": "2024-09-20T19:37:18Z"
}
]
}{
"error": "WebrpcEndpoint",
"code": 0,
"msg": "endpoint error",
"status": 400,
"cause": "<string>"
}{
"error": "WebrpcBadResponse",
"code": -5,
"msg": "bad response",
"status": 500,
"cause": "<string>"
}public
GetTransactionHistory
POST
/
rpc
/
Indexer
/
GetTransactionHistory
GetTransactionHistory
curl --request POST \
--url https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory \
--header 'Content-Type: application/json' \
--header 'X-Access-Key: <api-key>' \
--data '
{
"accountAddress": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4"
}
'import requests
url = "https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory"
payload = { "accountAddress": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4" }
headers = {
"X-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({accountAddress: '0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4'})
};
fetch('https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accountAddress' => '0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Access-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory"
payload := strings.NewReader("{\n \"accountAddress\": \"0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Access-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory")
.header("X-Access-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accountAddress\": \"0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://amoy-indexer.sequence.app/rpc/Indexer/GetTransactionHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Access-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountAddress\": \"0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4\"\n}"
response = http.request(request)
puts response.read_body{
"page": {
"after": "rmExGgC37OVhMnhCMHhiMjMzM2NlNDliNzlmMzcyOGUwYWFjNzNlNGMwNzYzYmVjODBlYmVmZGViZWZlOWU1ZDVmZGNiNWVmNzMyZWE2YTN4KjB4ZTZlYjI4Mzk4Y2NiZTQ2YWE1MDViNjJiOTY4MjJjMmNlOGRhYWJmNGE0eCoweGRkOTAxMjY4NTY5NTdhYTFlOWM1Y2MzMzk1ZTg2NmI2ZWI4MzBhNDRhNQJhNngqMHgwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwYTd4KjB4ZTZlYjI4Mzk4Y2NiZTQ2YWE1MDViNjJiOTY4MjJjMmNlOGRhYWJmNGE4eEIweDJkNmFiZmE1MTI2NDRmYzVjMjY2Nzk2ZTg4MzMxYmY0MWNhZDc1YWFlMjE4ZDQxODk0ODU1MzU4ZDhjODlhMGRhOQBhYQFhYmBhZIFDIjAiYWWBRCI2MiJhYxpm6I0N",
"pageSize": 10,
"more": true
},
"transactions": [
{
"txnHash": "0x64628263b93ccad7dfd6fb1a81f1bcdadd0eb89649e0a43bdf65f639fddcd319",
"blockNumber": 12215569,
"blockHash": "0x05a4b055603a0b0cdb9e0d1bc28088bb4fca79a83d32bdc4a98d665e06ae7564",
"chainId": 80002,
"metaTxnID": null,
"transfers": [
{
"transferType": "RECEIVE",
"contractAddress": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"contractType": "ERC20",
"from": "0x0000000000000000000000000000000000000000",
"to": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4",
"tokenIds": [
"0"
],
"amounts": [
"33"
],
"logIndex": 9,
"contractInfo": {
"chainId": 80002,
"address": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"name": "Oracle Token",
"type": "ERC20",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "",
"ogImage": "",
"originChainId": 0,
"originAddress": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"verified": true,
"verifiedBy": "Sequence Builder"
},
"updatedAt": "0001-01-01T00:00:00Z"
}
}
],
"timestamp": "2024-09-20T20:36:45Z"
},
{
"txnHash": "0x5aae198a65b993a767bd495ea77b7825e0e884d9dcc446a1515097eb962814d6",
"blockNumber": 12213913,
"blockHash": "0x726ccdee4ef384493f96c666e959258ba70689bd6553c098a51542b2627a8b22",
"chainId": 80002,
"metaTxnID": null,
"transfers": [
{
"transferType": "RECEIVE",
"contractAddress": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"contractType": "ERC20",
"from": "0x0000000000000000000000000000000000000000",
"to": "0xe6eb28398ccbe46aa505b62b96822c2ce8daabf4",
"tokenIds": [
"0"
],
"amounts": [
"1000"
],
"logIndex": 1,
"contractInfo": {
"chainId": 80002,
"address": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"name": "Oracle Token",
"type": "ERC20",
"symbol": "",
"deployed": true,
"bytecodeHash": "0x77d12b9637a99b3ba23920eea929a68cc89b49a0e1ff4d2a71b798550cc0060e",
"extensions": {
"link": "",
"description": "",
"ogImage": "",
"originChainId": 0,
"originAddress": "0xdd90126856957aa1e9c5cc3395e866b6eb830a44",
"verified": true,
"verifiedBy": "Sequence Builder"
},
"updatedAt": "0001-01-01T00:00:00Z"
}
}
],
"timestamp": "2024-09-20T19:37:18Z"
}
]
}{
"error": "WebrpcEndpoint",
"code": 0,
"msg": "endpoint error",
"status": 400,
"cause": "<string>"
}{
"error": "WebrpcBadResponse",
"code": -5,
"msg": "bad response",
"status": 500,
"cause": "<string>"
}Authorizations
Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
Body
application/json
Was this page helpful?
⌘I