1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bc3b1bef-ad1e-485f-81a6-fbe0eb0a2f0d",e._sentryDebugIdIdentifier="sentry-dbid-bc3b1bef-ad1e-485f-81a6-fbe0eb0a2f0d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8132],{3975:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(73555);function r(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let s=!0,o=()=>s=!1;return(async()=>{let i;t&&(i=await e({unpoll:o}));let c=await n?.(i)??r;await (0,a.u)(c);let l=async()=>{s&&(await e({unpoll:o}),await (0,a.u)(r),l())};l()})(),o}},7686:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(8853);async function r(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,a.ME)(t)}},38744:(e,t,n)=>{n.d(t,{sc:()=>a});let a=n(40164).sc},43400:(e,t,n)=>{n.d(t,{v:()=>r});var a=n(91901);function r({chain:e,currentChainId:t}){if(!e)throw new a.jF;if(t!==e.id)throw new a.EH({chain:e,currentChainId:t})}},47480:(e,t,n)=>{n.d(t,{g:()=>d});var a=n(64405),r=n(77223),s=n(2168),o=n(63502),i=n(39827),c=n(10660);function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<0x1000000)return 3;if(e<0x100000000)return 4;throw new i.C("Length is too large.")}var u=n(98674);async function d(e){let{authorization:t,signature:n}=e;return(0,a.x)({hash:function(e){let{chainId:t,nonce:n,to:a}=e,i=e.contractAddress??e.address,d=(0,u.S)((0,r.aP)(["0x05",function(e,t="hex"){let n=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),n=l(t);return{length:t<=55?1+t:1+n+t,encode(a){for(let{encode:r}of(t<=55?a.pushByte(192+t):(a.pushByte(247+n),1===n?a.pushUint8(t):2===n?a.pushUint16(t):3===n?a.pushUint24(t):a.pushUint32(t)),e))r(a)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,s.aT)(e):e,n=l(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),a=(0,c.l)(new Uint8Array(n.length));return(n.encode(a),"hex"===t)?(0,o.My)(a.bytes):a.bytes}([t?(0,o.cK)(t):"0x",i,n?(0,o.cK)(n):"0x"])]));return"bytes"===a?(0,s.aT)(d):d}(t),signature:n??t})}},50240:(e,t,n)=>{n.d(t,{v:()=>m});var a=n(3773),r=n(65163),s=n(39827),o=n(47480),i=n(43400),c=n(92204),l=n(65507),u=n(2835),d=n(65400),f=n(76815),h=n(1208),p=n(7686),b=n(74285),y=n(83934);let g=new f.A(128);async function m(e,t){let{account:n=e.account,chain:f=e.chain,accessList:m,authorizationList:w,blobs:v,data:x,gas:P,gasPrice:I,maxFeePerBlobGas:T,maxFeePerGas:G,maxPriorityFeePerGas:M,nonce:B,type:C,value:E,...U}=t;if(void 0===n)throw new r.T({docsPath:"/docs/actions/wallet/sendTransaction"});let k=n?(0,a.J)(n):null;try{(0,h.c)(t);let n=await (async()=>t.to?t.to:null!==t.to&&w&&w.length>0?await (0,o.g)({authorization:w[0]}).catch(()=>{throw new s.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(k?.type==="json-rpc"||null===k){let t;null!==f&&(t=await (0,d.T)(e,p.T,"getChainId")({}),(0,i.v)({currentChainId:t,chain:f}));let a=e.chain?.formatters?.transactionRequest?.format,r=(a||u.Bv)({...(0,l.o)(U,{format:a}),accessList:m,authorizationList:w,blobs:v,chainId:t,data:x,from:k?.address,gas:P,gasPrice:I,maxFeePerBlobGas:T,maxFeePerGas:G,maxPriorityFeePerGas:M,nonce:B,to:n,type:C,value:E}),s=g.get(e.uid);try{return await e.request({method:s?"wallet_sendTransaction":"eth_sendTransaction",params:[r]},{retryCount:0})}catch(t){if(!1===s)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[r]},{retryCount:0}).then(t=>(g.set(e.uid,!0),t)).catch(n=>{if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw g.set(e.uid,!1),t;throw n});throw t}}if(k?.type==="local"){let t=await (0,d.T)(e,b.ft,"prepareTransactionRequest")({account:k,accessList:m,authorizationList:w,blobs:v,chain:f,data:x,gas:P,gasPrice:I,maxFeePerBlobGas:T,maxFeePerGas:G,maxPriorityFeePerGas:M,nonce:B,nonceManager:k.nonceManager,parameters:[...b.MM,"sidecars"],type:C,value:E,...U,to:n}),a=f?.serializers?.transaction,r=await k.signTransaction(t,{serializer:a});return await (0,d.T)(e,y.L,"sendRawTransaction")({serializedTransaction:r})}if(k?.type==="smart")throw new r.Z({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new r.Z({docsPath:"/docs/actions/wallet/sendTransaction",type:k?.type})}catch(e){if(e instanceof r.Z)throw e;throw(0,c.p)(e,{...t,account:k,chain:t.chain||void 0})}}},53270:(e,t,n)=>{n.d(t,{Lj:()=>o,uL:()=>i});var a=n(8853),r=n(70068),s=n(49282);let o={"0x0":"reverted","0x1":"success"};function i(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,r.e)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,a.ME)(e.transactionIndex):null,status:e.status?o[e.status]:null,type:e.type?s.b4[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}}
1,56249:(e,t,n)=>{n.d(t,{y:()=>s});var a=n(8853),r=n(63502);async function s(e,{address:t,blockTag:n="latest",blockNumber:s}){let o=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof s?(0,r.cK)(s):n]},{dedupe:!!s});return(0,a.ME)(o)}},60318:(e,t,n)=>{n.d(t,{lB:()=>o});let a=new Map,r=new Map,s=0;function o(e,t,n){let o=++s,i=()=>a.get(e)||[],c=()=>{let t=i();if(!t.some(e=>e.id===o))return;let n=r.get(e);if(1===t.length&&n){let e=n();e instanceof Promise&&e.catch(()=>{})}let s=i();a.set(e,s.filter(e=>e.id!==o))},l=i();if(a.set(e,[...l,{id:o,fns:t}]),l&&l.length>0)return c;let u={};for(let e in t)u[e]=(...t)=>{let n=i();if(0!==n.length)for(let a of n)a.fns[e]?.(...t)};let d=n(u);return"function"==typeof d&&r.set(e,d),c}},64405:(e,t,n)=>{n.d(t,{x:()=>d});var a=n(70079),r=n(98674),s=n(36652),o=n(39550),i=n(8853),c=n(63502);async function l({hash:e,signature:t}){let a=(0,s.q)(e)?e:(0,c.nj)(e),{secp256k1:r}=await Promise.all([n.e(164),n.e(1703)]).then(n.bind(n,41703)),l=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:n,v:a,yParity:s}=t,o=u(Number(s??a));return new r.Signature((0,i.uU)(e),(0,i.uU)(n)).addRecoveryBit(o)}let e=(0,s.q)(t)?t:(0,c.nj)(t);if(65!==(0,o.E)(e))throw Error("invalid signature length");let n=u((0,i.ME)(`0x${e.slice(130)}`));return r.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(a.substring(2)).toHex(!1);return`0x${l}`}function u(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function d({hash:e,signature:t}){var n=await l({hash:e,signature:t});let s=(0,r.S)(`0x${n.substring(4)}`).substring(26);return(0,a.o)(`0x${s}`)}},65163:(e,t,n)=>{n.d(t,{T:()=>r,Z:()=>s});var a=n(39827);class r extends a.C{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class s extends a.C{constructor({docsPath:e,metaMessages:t,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}},70068:(e,t,n)=>{n.d(t,{e:()=>a});function a(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}},74285:(e,t,n)=>{n.d(t,{MM:()=>T,ft:()=>M});var a=n(3773),r=n(53565),s=n(96612),o=n(5875),i=n(56249),c=n(5320),l=n(2168),u=n(63502);function d(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,l.aT)(e)):e.blobs,r=[];for(let e of a)r.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===n?r:r.map(e=>(0,u.My)(e))}function f(e){let{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),a="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,l.aT)(e)):e.blobs,r="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,l.aT)(e)):e.commitments,s=[];for(let e=0;e<a.length;e++){let n=a[e],o=r[e];s.push(Uint8Array.from(t.computeBlobKzgProof(n,o)))}return"bytes"===n?s:s.map(e=>(0,u.My)(e))}var h=n(38744),p=n(36652),b=n(39827);class y extends b.C{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class g extends b.C{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}b.C,b.C;var m=n(10660),w=n(39550),v=n(65400),x=n(1208),P=n(1260),I=n(7686);let T=["blobVersionedHashes","chainId","fees","gas","nonce","type"],G=new Map;async function M(e,t){let n,b,{account:M=e.account,blobs:B,chain:C,gas:E,kzg:U,nonce:k,nonceManager:A,parameters:F=T,type:q}=t,N=M?(0,a.J)(M):M,R={...t,...N?{from:N?.address}:{}};async function H(){return n||(n=await (0,v.T)(e,o.g,"getBlock")({blockTag:"latest"}))}async function _(){return b||(C?C.id:void 0!==t.chainId?t.chainId:b=await (0,v.T)(e,I.T,"getChainId")({}))}if(F.includes("nonce")&&void 0===k&&N)if(A){let t=await _();R.nonce=await A.consume({address:N.address,chainId:t,client:e})}else R.nonce=await (0,v.T)(e,i.y,"getTransactionCount")({address:N.address,blockTag:"pending"});if((F.includes("blobVersionedHashes")||F.includes("sidecars"))&&B&&U){let e=d({blobs:B,kzg:U});
1if(F.includes("blobVersionedHashes")&&(R.blobVersionedHashes=function(e){let{commitments:t,version:n}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),r=[];for(let e of t)r.push(function(e){let{commitment:t,version:n=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),r=function(e,t){let n=(0,h.sc)((0,p.q)(e,{strict:!1})?(0,l.ZJ)(e):e);return"bytes"===(t||"hex")?n:(0,u.nj)(n)}(t,"bytes");return r.set([n],0),"bytes"===a?r:(0,u.My)(r)}({commitment:e,to:a,version:n}));return r}({commitments:e,to:"hex"})),F.includes("sidecars")){let t=f({blobs:B,commitments:e,kzg:U});R.sidecars=function(e){let{data:t,kzg:n,to:a}=e,r=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?(0,l.aT)(e.data):e.data,a=(0,w.E)(n);if(!a)throw new g;if(a>761855)throw new y({maxSize:761855,size:a});let r=[],s=!0,o=0;for(;s;){let e=(0,m.l)(new Uint8Array(131072)),t=0;for(;t<4096;){let a=n.slice(o,o+31);if(e.pushByte(0),e.pushBytes(a),a.length<31){e.pushByte(128),s=!1;break}t++,o+=31}r.push(e)}return"bytes"===t?r.map(e=>e.bytes):r.map(e=>(0,u.My)(e.bytes))}({data:t,to:a}),s=e.commitments??d({blobs:r,kzg:n,to:a}),o=e.proofs??f({blobs:r,commitments:s,kzg:n,to:a}),i=[];for(let e=0;e<r.length;e++)i.push({blob:r[e],commitment:s[e],proof:o[e]});return i}({blobs:B,commitments:e,proofs:t,to:"hex"})}}if(F.includes("chainId")&&(R.chainId=await _()),(F.includes("fees")||F.includes("type"))&&void 0===q)try{R.type=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new P.Vg({transaction:e})}(R)}catch{let t=G.get(e.uid);if(void 0===t){let n=await H();t="bigint"==typeof n?.baseFeePerGas,G.set(e.uid,t)}R.type=t?"eip1559":"legacy"}if(F.includes("fees"))if("legacy"!==R.type&&"eip2930"!==R.type){if(void 0===R.maxFeePerGas||void 0===R.maxPriorityFeePerGas){let n=await H(),{maxFeePerGas:a,maxPriorityFeePerGas:s}=await (0,r.O)(e,{block:n,chain:C,request:R});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<s)throw new c.RR({maxPriorityFeePerGas:s});R.maxPriorityFeePerGas=s,R.maxFeePerGas=a}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new c.pw;if(void 0===t.gasPrice){let t=await H(),{gasPrice:n}=await (0,r.O)(e,{block:t,chain:C,request:R,type:"legacy"});R.gasPrice=n}}return F.includes("gas")&&void 0===E&&(R.gas=await (0,v.T)(e,s.Q,"estimateGas")({...R,account:N?{address:N.address,type:"json-rpc"}:N})),(0,x.c)(R),delete R.parameters,R}},83934:(e,t,n)=>{n.d(t,{L:()=>a});async function a(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}},92204:(e,t,n)=>{n.d(t,{p:()=>o});var a=n(60764),r=n(1260),s=n(22088);function o(e,{docsPath:t,...n}){let o=(()=>{let t=(0,s.l)(e,n);return t instanceof a.RM?e:t})();return new r.$s(o,{docsPath:t,...n})}},96612:(e,t,n)=>{n.d(t,{Q:()=>w});var a=n(3773),r=n(39827),s=n(47480),o=n(63502),i=n(33030),c=n(52350),l=n(1260);class u extends r.C{constructor(e,{account:t,docsPath:n,chain:a,data:r,gas:s,gasPrice:o,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:h,value:p}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,l.aO)({from:t?.address,to:h,value:void 0!==p&&`${(0,i.c)(p)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:r,gas:s,gasPrice:void 0!==o&&`${(0,c.Q)(o)} gwei`,maxFeePerGas:void 0!==u&&`${(0,c.Q)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,c.Q)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=n(60764),f=n(22088),h=n(65507),p=n(2835),b=n(72199),y=n(1208),g=n(74285),m=n(12454);async function w(e,t){let{account:n=e.account}=t,i=n?(0,a.J)(n):void 0;try{let{accessList:n,authorizationList:a,blobs:l,blobVersionedHashes:u,blockNumber:d,blockTag:f,data:w,gas:v,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:I,maxPriorityFeePerGas:T,nonce:G,value:M,stateOverride:B,...C}=await (0,g.ft)(e,{...t,parameters:i?.type==="local"?void 0:["blobVersionedHashes"]}),E=("bigint"==typeof d?(0,o.cK)(d):void 0)||f,U=(0,b.yH)(B),k=await (async()=>C.to?C.to:a&&a.length>0?await (0,s.g)({authorization:a[0]}).catch(()=>{throw new r.C("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,y.c)(t);let A=e.chain?.formatters?.transactionRequest?.format,F=(A||p.Bv)({...(0,h.o)(C,{format:A}),from:i?.address,accessList:n,authorizationList:a,blobs:l,blobVersionedHashes:u,data:w,gas:v,gasPrice:x,maxFeePerBlobGas:P,maxFeePerGas:I,maxPriorityFeePerGas:T,nonce:G,to:k,value:M});function c(t){let{block:n,request:a,rpcStateOverride:r}=t;return e.request({method:"eth_estimateGas",params:r?[a,n??e.experimental_blockTag??"latest",r]:n?[a,n]:[a]})}
1let q=BigInt(await c({block:E,request:F,rpcStateOverride:U}));if(a){let t=await (0,m.r)(e,{address:F.from}),n=await Promise.all(a.map(async e=>{let{address:n}=e,a=await c({block:E,request:{authorizationList:void 0,data:w,from:i?.address,to:n,value:(0,o.cK)(t)},rpcStateOverride:U}).catch(()=>100000n);return 2n*BigInt(a)}));q+=n.reduce((e,t)=>e+t,0n)}return q}catch(n){throw function(e,{docsPath:t,...n}){return new u((()=>{let t=(0,f.l)(e,n);return t instanceof d.RM?e:t})(),{docsPath:t,...n})}(n,{...t,account:i,chain:e.chain})}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.