Escape hatch for ledger reads useExecute and useSignMessage do not cover: the participant's JSON API, passed through untyped.
useExecute
useSignMessage
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/users/{user-id}/rights', path: { 'user-id': 'alice' },}) Copy
const { ledgerApi } = useLedger()await ledgerApi({ requestMethod: 'get', resource: '/v2/users/{user-id}/rights', path: { 'user-id': 'alice' },})
Escape hatch for ledger reads
useExecuteanduseSignMessagedo not cover: the participant's JSON API, passed through untyped.