List all Transactions
This endpoint allows you to retrieve a paginated list of all your Transactions. By default, a maximum of ten Trnasactions are shown per page.
Authorizations
Responses
200
Returns a paginated list of Transactions
application/json
401
Unauthorized
application/json
get
/v2/transactionsGET /v2/transactions HTTP/1.1
Host: api.underdogprotocol.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"results": [
{
"id": "text",
"status": "text",
"type": "text",
"mintAddress": "text"
}
],
"page": 1,
"limit": 10,
"totalPages": 1,
"totalResults": 1
}Example
curl --location --request GET 'https://dev.underdogprotocol.com/v2/transactions' \
--header 'Authorization: Bearer {token}'const axios = require('axios');
let config = {
method: 'get',
url: 'https://dev.underdogprotocol.com/v2/transactions',
headers: {
'Authorization': 'Bearer {token}'
}
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
{
"results": [
{
"id": "FrvZAJ1qZ2vhV17nFdEmw66N3FW5QiHFt6HdqsEh8QNq",
...
},
{
"id": "7eYfyPfnGzxp8A9TrQJEpKwVCC8nP9viHRRGJ89WzFJB",
...
},
{
"id": "61YbMJWQbboN3PUQen9MrxF53eMkGcnhEVrkX24TcTqK",
...
}
],
"limit": 3,
"page": 1,
"totalPages": 3,
"totalResults": 8
}Last updated