This adapter calculates NFTX redemption values for an NFT collection, combining the price for the associated vToken with the collection's fee settings.
This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
✅ | ETHEREUM_RPC_URL | string | |||
ETHEREUM_CHAIN_ID | The chain id to connect to | string | 1 |
There are no rate limits for this adapter.
Every EA supports base input parameters from this list
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | price | price |
price
is the only supported name for this endpoint.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | vaultAddress | address , tokenAddress |
The address of the NFTX vault being queried for. | string |
Request:
{
"id": "1",
"data": {
"vaultAddress": "0x269616D549D7e8Eaa82DFb17028d0B212D11232A",
"endpoint": "price"
},
"debug": {
"cacheKey": "hgXqzD9ji3qyHVo+vugB/XttLU0="
}
}
Response:
{
"jobRunID": "1",
"data": {
"fee": "0.02",
"price": "65.319915591679174162",
"priceWithFee": "66.626313903512757645"
},
"statusCode": 200
}
MIT License