createLitClient({ network }
)
import { nagaDev } from "@lit-protocol/networks";
const litClient = await createLitClient({ network: nagaDev });
Show properties
Show allowed values
Show behaviour
Show auto‑hash mapping (ECDSA)
Show auto‑hash mapping (FROST)
toSign
is signed as‑is.Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
Show properties
mintWithAuth
.
Hide properties
Hide properties
Show params
Show example
await manager.addPermittedAuthMethod({ authMethodType: 1, authMethodId: "0x...", userPubkey: "0x...", scopes: ["sign-anything"] });
Show params
Show example
await manager.removePermittedAction({ ipfsId: "Qm..." });
Show params
Show example
await manager.removePermittedAddress({ address: "0xUser..." });
Show params
Show example
const ok = await manager.isPermittedAction({ ipfsId: "Qm..." });
Show params
Show example
const ok = await manager.isPermittedAddress({ address: "0xUser..." });
Show operations (array of)
Show example
await manager.batchUpdatePermissions([
{ type: 'addAddress', address: '0xUser...', scopes: ['sign-anything'] },
{ type: 'addAction', ipfsId: 'Qm...', scopes: ['sign-anything'] },
]);
Show properties
Hide properties
Show params
Show example
await paymentManager.deposit({ amountInEth: "0.1" });
Show params
Show example
const bal = await paymentManager.getBalance({ userAddress: "0x..." });
console.log(bal.totalBalance, bal.availableBalance);
Show params
Show example
await paymentManager.requestWithdraw({ amountInEth: "0.05" });
Show params
Show example
await paymentManager.withdraw({ amountInEth: "0.05" });
Show params
Show example
const info = await paymentManager.getWithdrawRequest({ userAddress: "0x..." });
Show example
const delay = await paymentManager.getWithdrawDelay();
Show params
Show example
const { canExecute, timeRemaining } = await paymentManager.canExecuteWithdraw({ userAddress: "0x..." });
Show params
Show example
await paymentManager.delegatePayments({ userAddress: "0xUser..." });
Show params
Show example
await paymentManager.undelegatePayments({ userAddress: "0xUser..." });
Show params
Show example
await paymentManager.delegatePaymentsBatch({ userAddresses: ["0xA...","0xB..."] });
Show params
Show example
await paymentManager.undelegatePaymentsBatch({ userAddresses: ["0xA...","0xB..."] });
Show params
Show example
const payers = await paymentManager.getPayers({ userAddress: "0xUser..." });
Show params
Show example
const users = await paymentManager.getUsers({ payerAddress: "0xPayer..." });
Show params
Show example
const r = await paymentManager.getRestriction({ payerAddress: "0xPayer..." });
Show params
Show example
const res = await paymentManager.getPayersAndRestrictions({ userAddresses: ["0xA...","0xB..."] });
Show properties
Show properties
Was this page helpful?