Escape hatch for ledger reads useExecute and useSignMessage do not cover: the participant's JSON API, passed through untyped. Wagmi: usePublicClient.
useExecute
useSignMessage
usePublicClient
with no CantonConnectProvider above it, and from ledgerApi itself where nothing is connected, which isReady is there to check first.
ledgerApi
isReady
const { ledgerApi } = useLedger()await ledgerApi({ requestMethod: 'get', resource: '/v2/state/ledger-end' }) Copy
const { ledgerApi } = useLedger()await ledgerApi({ requestMethod: 'get', resource: '/v2/state/ledger-end' })
Escape hatch for ledger reads
useExecuteanduseSignMessagedo not cover: the participant's JSON API, passed through untyped. Wagmi:usePublicClient.