diff --git a/docs/apireference/webhookapi.md b/docs/apireference/webhookapi.md index 3f149557..cfac4d9f 100644 --- a/docs/apireference/webhookapi.md +++ b/docs/apireference/webhookapi.md @@ -252,6 +252,10 @@ When building out the `paymasterServiceData` object you can optionally pass your ```typescript let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, calculateGasLimits: true, webhookData: { num: 2 diff --git a/docs/howtos/executinguserops/gaslessTransactions.md b/docs/howtos/executinguserops/gaslessTransactions.md index 99e3cb4f..70b29306 100644 --- a/docs/howtos/executinguserops/gaslessTransactions.md +++ b/docs/howtos/executinguserops/gaslessTransactions.md @@ -71,6 +71,10 @@ We now need to construct the `paymasterAndData` field of our userOp. This is don const biconomyPaymaster = smartAccount.paymaster as IHybridPaymaster; let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; const paymasterAndDataResponse = await biconomyPaymaster.getPaymasterAndData( userOp, @@ -116,6 +120,10 @@ const userOpResponse = await smartAccount.sendUserOp(userOp); smartAccount.paymaster as IHybridPaymaster; let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; const paymasterAndDataResponse = await biconomyPaymaster.getPaymasterAndData( diff --git a/docs/smartAccountv1/tutorials/nodejs/paywitherc20.md b/docs/smartAccountv1/tutorials/nodejs/paywitherc20.md index deeac1e2..a06a7b24 100644 --- a/docs/smartAccountv1/tutorials/nodejs/paywitherc20.md +++ b/docs/smartAccountv1/tutorials/nodejs/paywitherc20.md @@ -105,6 +105,10 @@ async function mintNFT() { let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; console.log("getting paymaster and data"); try { diff --git a/docs/tutorials/React_vite/gasless-txn.md b/docs/tutorials/React_vite/gasless-txn.md index df842c9c..1559b857 100644 --- a/docs/tutorials/React_vite/gasless-txn.md +++ b/docs/tutorials/React_vite/gasless-txn.md @@ -521,6 +521,10 @@ const Counter: React.FC = ({ smartAccount, provider }) => { let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, // optional params... }; diff --git a/docs/tutorials/nextjs/gaslesstransaction.md b/docs/tutorials/nextjs/gaslesstransaction.md index e04795bd..d2404c28 100644 --- a/docs/tutorials/nextjs/gaslesstransaction.md +++ b/docs/tutorials/nextjs/gaslesstransaction.md @@ -87,6 +87,10 @@ We're going to need to pass three items to this component: the instance of the s smartAccount.paymaster as IHybridPaymaster; let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; const paymasterAndDataResponse = await biconomyPaymaster.getPaymasterAndData( @@ -132,6 +136,10 @@ The next few lines are important in making sure this becomes a gasless transacit let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; const paymasterAndDataResponse = await biconomyPaymaster.getPaymasterAndData( @@ -223,6 +231,10 @@ And make another update to the `handleMint` function: smartAccount.paymaster as IHybridPaymaster; let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; const paymasterAndDataResponse = await biconomyPaymaster.getPaymasterAndData( @@ -455,6 +467,10 @@ const Minter: React.FC = ({ smartAccount, address, provider }) => { smartAccount.paymaster as IHybridPaymaster; let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; const paymasterAndDataResponse = await biconomyPaymaster.getPaymasterAndData( diff --git a/docs/tutorials/nodejs/batchingTransactions.md b/docs/tutorials/nodejs/batchingTransactions.md index 2204f1cf..f147c183 100644 --- a/docs/tutorials/nodejs/batchingTransactions.md +++ b/docs/tutorials/nodejs/batchingTransactions.md @@ -90,6 +90,10 @@ async function mintNFT() { let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; console.log("getting paymaster and data") try { diff --git a/docs/tutorials/nodejs/gaslessmint.md b/docs/tutorials/nodejs/gaslessmint.md index 0ff67846..292ccc32 100644 --- a/docs/tutorials/nodejs/gaslessmint.md +++ b/docs/tutorials/nodejs/gaslessmint.md @@ -203,6 +203,10 @@ async function mintNFT() { let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; console.log("getting paymaster and data"); try { diff --git a/docs/tutorials/nodejs/multichainmint.md b/docs/tutorials/nodejs/multichainmint.md index 9537d58e..2100f7fc 100644 --- a/docs/tutorials/nodejs/multichainmint.md +++ b/docs/tutorials/nodejs/multichainmint.md @@ -92,6 +92,10 @@ async function mintNFT() { let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; console.log("getting paymaster and data") try { diff --git a/docs/tutorials/nodejs/paywitherc20.md b/docs/tutorials/nodejs/paywitherc20.md index 24c68654..333c7304 100644 --- a/docs/tutorials/nodejs/paywitherc20.md +++ b/docs/tutorials/nodejs/paywitherc20.md @@ -108,6 +108,10 @@ async function mintNFT() { let paymasterServiceData: SponsorUserOperationDto = { mode: PaymasterMode.SPONSORED, + smartAccountInfo: { + name: 'BICONOMY', + version: '2.0.0' + }, }; console.log("getting paymaster and data"); try {