@soroban-react/contracts
TypeScript icon, indicating that this package has built-in type declarations

9.3.0 • Public • Published

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

Package Sidebar

Install

npm i @soroban-react/contracts

Weekly Downloads

85

Version

9.3.0

License

Apache-2.0

Unpacked Size

61.6 kB

Total Files

25

Last publish

Collaborators

  • devmonsterblock
  • abstract829
  • benjaminsalon
  • coderipper
  • paulbellamy
  • esteblock