Skip to content

Commit faf1d8b

Browse files
committed
chore(docs): update payment manager setup
1 parent 6a45b24 commit faf1d8b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/sdk/getting-started/payment-manager-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const response = await litClient.decrypt({
158158
unifiedAccessControlConditions: accs,
159159
authContext,
160160
chain: 'ethereum',
161-
userMaxPrice: BigInt('200000000000000000'), // optional guardrail
161+
userMaxPrice: 1000000000000000000n, // required for sponsored sessions, typically the same value as the restriction the sponsor set; optional guardrail when self-funded
162162
});
163163
```
164164

packages/lit-client/src/lib/LitClient/createLitClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ export const _createNagaLitClient = async (
919919
pkpPublicKey: string | Hex;
920920
authContext: AuthContextSchema2;
921921
chainConfig: Chain;
922+
userMaxPrice?: bigint
922923
}) => {
923924
const _pkpPublicKey = HexPrefixedSchema.parse(params.pkpPublicKey);
924925

@@ -934,6 +935,7 @@ export const _createNagaLitClient = async (
934935
toSign: data,
935936
authContext: params.authContext,
936937
bypassAutoHashing: options?.bypassAutoHashing,
938+
userMaxPrice: params.userMaxPrice,
937939
});
938940

939941
return res.signature;

0 commit comments

Comments
 (0)