API

The 3A Borrowing Protocol API is engineered to facilitate seamless interaction between integrators and the core protocol contracts.

Retrieves core protocol contract addresses

GET https://api-testnet.3adao.org/chain

{
"jsonData": {
"lastResortLiquidation": "0xF126bB7C214B1cDBde7f4296Da2Da5Fc99e34F27",
"auctionManager": "0xc3E52ebA21517c59BEdA53A1C760fdf2fb2C0025",
"vaultFactory": "0x050FAc481D26BDd477e121c04e5b059eDFd9F42f",
"liquidationRouter": "0xd14A6F345E44B8c061b63f6A79DA47F148082F54",
"a3aToken": "0x5D402E1Cf27769de037fDed4CdC1Aff2B0ce2208",
"mintableTokenOwner": "0xfd9f0EEa6a617C2D0Ab9656Fd6cf8aC5ED53Fd0C",
"stabilityPool": "0xaE5756207501459a9A72F2e4d06B219e146918dB",
"stableCoin": "0x25D50b4A9C4301ED18F832dD0ca002b3006D5ef0",
"a3aStaking": "0xED6aBF8eb45921E3ec462cD09e9DcDc13b4BA82A",
"rpc": "https://rpc.buildbear.io/urban-zam-wesell-f93d4545",
"chainId": "10801"
}
}

Get overall protocol statistics

GET https://api-testnet.3adao.org/protocolStats

Retrieves core protocol supported collaterals

GET https://api-testnet.3adao.org/collaterals

Also retrieves collateral settings such as - MCR: Minimum Collateralization Ratio (%) - MLR: Minimum Liquidation Ratio (%)

Retrieves collateral price via the core protocol oracles

GET https://api-testnet.3adao.org/collaterals/price/:collateralAddress

Path Parameters

Name
Type
Description

:collateralAddress*

String

ERC20 collateral address

Retrieves the full list of core protocol contract ABIs

GET https://api-testnet.3adao.org/abi/list

Retrieves a specific ABI of the input contract, along with its deployed address

GET https://api-testnet.3adao.org/abi/

Example: /abi/A3A

Path Parameters

Name
Type
Description

contractName*

String

target contract

Get vaults list and detailed informations

GET https://api-testnet.3adao.org/vaults

If no vault address is provided, it will return the full list of opened vaults in the protocol.

To get a specific vault details, use /vaults/0x....00

Path Parameters

Name
Type
Description

vaultAddress

String

target Vault address

Get all vaults that can be redeemed against

GET https://api-testnet.3adao.org/redeemableVaults

If any vault can be redeemed against, it will also provide which collateral can be redeemed for EURO3

Get all liquidatable vaults

GET https://api-testnet.3adao.org/liquidatableVaults

Get all vaults owned by a specific address

GET https://api-testnet.3adao.org/vaultsByUser/:address

If no vault address is provided, it will return the full list of opened vaults in the protocol.

To get a specific vault details, use /vaults/0x....00

Path Parameters

Name
Type
Description

:address

String

target owner address

Last updated