Skip to content

Vault

Retrieve vault id

Retrieve the vault id

Parameters


*asset_id string

The identity of the token as represented on-chain (external ERC-20/ERC-721/ERC-1155 for deposit/withdraw goes through, correct quantization, etc)

Asset ID or known as asset_id, is calculated based on contract address and Token ID(if token is ERC721), used as an unique identifier for specific asset.


*stark_keys string

A unique key that identifies the user in the off-chain state

cURL Example

jsx
GET /v1/vaults
sh
curl -v 'https://api-dev.reddio.com/v1/vaults?asset_id=0x4240e8b8c0b6E6464a13F555F6395BbfE1c4bdf1&stark_keys=0x761f1709a72a7e1d9a503faf2a1067686f315acdc825a804e1281fbd39accda'

Example response

json
{
	"status": "OK",
	"error": "",
	"error_code": 0,
	"data": {
		"vault_ids": [
			"23400429"
		]
	}
}