useAccounts
Hook for getting accounts owned by an address.
Import
import { useAccounts } from '@abstract-money/react'
Usage
index.tsx
import { useAccounts } from '@abstract-money/react'
function App() {
const accountsQuery = useAccounts({
args: {
owner: '...',
chains: ['osmosis'],
}
})
}
Parameters
args
Arguments passed to the hook
owner
string
Bech address of the queried owner of the accounts
chains
string[]
Array of chains to query.
extra
{ apiUrl?: string | undefined; } | undefined
Extra options to override decorated parameters.
query
QueryOptions | undefined
QueryOptions
to use.