@soroban-react/contracts
v9.3.0
Published
See the official gitbook: https://soroban-react.gitbook.io/index/ . ___
Downloads
471
Readme
@soroban-react/contracts
See the official gitbook: https://soroban-react.gitbook.io/index/ .
import { useContractValue} from '@soroban-react/contracts'
import { useSorobanReact } from '@soroban-react/core'
const balance = useContractValue({
contractId: Constants.TokenId,
method: 'balance',
params: [contractIdentifier(Buffer.from(Constants.CrowdfundId, 'hex'))],
sorobanContext: sorobanContext
})