Skip to content

Files

Latest commit

May 7, 2024
3e52180 · May 7, 2024

History

History
This branch is 31 commits behind paltalabs/soroban-react:main.

contracts

@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
    })