useBalance
useBalance(
props
):UseReadContractsReturnType
<readonly [{abi
: readonly [{ }, { }, { }, { }, { }, { }, { }, { }, { }, { }, { }];address
:`0x${string}`
;args
: [`0x${string}`
];functionName
:"balanceOf"
; }, {abi
: readonly [{ }, { }, { }, { }, { }, { }, { }, { }, { }, { }, { }];address
:`0x${string}`
;functionName
:"decimals"
; }, {abi
: readonly [{ }, { }, { }, { }, { }, { }, { }, { }, { }, { }, { }];address
:`0x${string}`
;functionName
:"symbol"
; }, {abi
: readonly [{ }, { }, { }, { }, { }, { }, { }, { }, { }, { }, { }];address
:`0x${string}`
;args
: [`0x${string}`
,`0x${string}`
];functionName
:"allowance"
; }],false
, {allowance
:bigint
;decimals
:number
;symbol
:string
;value
:bigint
; }>
Defined in: packages/iso-filecoin-synapse/src/hooks/erc20.ts:32
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
props | Props |
Returns
Section titled “Returns”UseReadContractsReturnType
<readonly [{ abi
: readonly [{ }, { }, { }, { }, { }, { }, { }, { }, { }, { }, { }]; address
: `0x${string}`
; args
: [`0x${string}`
]; functionName
: "balanceOf"
; }, { abi
: readonly [{ }, { }, { }, { }, { }, { }, { }, { }, { }, { }, { }]; address
: `0x${string}`
; functionName
: "decimals"
; }, { abi
: readonly [{ }, { }, { }, { }, { }, { }, { }, { }, { }, { }, { }]; address
: `0x${string}`
; functionName
: "symbol"
; }, { abi
: readonly [{ }, { }, { }, { }, { }, { }, { }, { }, { }, { }, { }]; address
: `0x${string}`
; args
: [`0x${string}`
, `0x${string}`
]; functionName
: "allowance"
; }], false
, { allowance
: bigint
; decimals
: number
; symbol
: string
; value
: bigint
; }>