Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 4a7f3c5

Browse files
authored
fix: support koios v1 API (#35)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent d89c0f2 commit 4a7f3c5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#DOCKER_USERS=centos
2121

2222
# Koios API URL (default: preview API)
23-
#KOIOS_URL="https://api.koios.rest/api/v0"
23+
#KOIOS_URL="https://api.koios.rest/api/v1"
2424

2525
# Manage DataDog with Ansible, requires DD_API_KEY (default: false)
2626
#MANAGE_DATADOG=true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ instance of the backends. Also, make sure API token (and PSK) matches mainnet.
3939
```
4040
AIRDROP_ENABLED=false
4141
CARDANO_NETWORK=mainnet
42-
KOIOS_URL=https://api.koios.rest/api/v0
42+
KOIOS_URL=https://api.koios.rest/api/v1
4343
VM_URL=https://vm.adaseal.eu
4444
```

runme.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ else
2222
echo "You must give an API token!"
2323
exit 1
2424
fi
25-
KOIOS_URL=https://preview.koios.rest/api/v0
25+
KOIOS_URL=https://preview.koios.rest/api/v1
2626
VM_URL=https://vmprev.adaseal.eu
2727
if test "${CARDANO_NETWORK}" == "mainnet"; then
28-
KOIOS_URL=https://koios.rest/api/v0
28+
KOIOS_URL=https://koios.rest/api/v1
2929
VM_URL=https://vm.adaseal.eu
3030
fi
3131
echo "VM_BRANCH=${VM_BRANCH}" > ${__repo}/.env

server/utils/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export async function translateAdaHandle(
9797
policyId: string,
9898
koiosUrl: string,
9999
) {
100-
const url = `${koiosUrl}/asset_address_list?_asset_policy=${policyId}&_asset_name=${handleInHex}`;
100+
const url = `${koiosUrl}/asset_addresses?_asset_policy=${policyId}&_asset_name=${handleInHex}`;
101101

102102
const data = (await axios.get(url)).data;
103103

0 commit comments

Comments
 (0)