Skip to main content
POST
/
api
/
defillama
/
chains
/
history
/defillama/chains/history
curl --request POST \
  --url https://api.anysite.io/api/defillama/chains/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "chain": "<string>",
  "timeout": 300,
  "count": 2
}
'
[
  {
    "date_at": 123,
    "tvl": 123,
    "@type": "@defillama_chain_tvl_point"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
chain
string
required

Chain name

Minimum string length: 1
Examples:

"Ethereum"

"Solana"

"Arbitrum"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
count
integer | null

Return only the most recent N daily points

Required range: x >= 1

Response

Successful Response

date_at
integer
required
tvl
number
required
@type
string
default:@defillama_chain_tvl_point