Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Files

Latest commit

Sep 29, 2024
db03aaa · Sep 29, 2024

History

History

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