Get collateral balance

Get collateral balance on Compound

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

Reads an address's collateral balance of an asset in a Compound market. Comet returns the user's supplied collateral in the asset's units. Reach for it to size a collateral withdrawal at what is actually held, or to multiply the balance by a price and a collateral factor to compute borrowing capacity before a borrow.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More plugs on Base

Earn yield on Base · 12 plugs

More on Compound · 20

On other protocols · 4