Skip to content

Instantly share code, notes, and snippets.

@rewbs
Last active January 20, 2026 19:52
Show Gist options
  • Select an option

  • Save rewbs/f1689bd8db354f49a8bac7f12db98602 to your computer and use it in GitHub Desktop.

Select an option

Save rewbs/f1689bd8db354f49a8bac7f12db98602 to your computer and use it in GitHub Desktop.
useCryptoPayment.ts:532 [CryptoPayment] Payment initiated: {walletType: 'privy', isEmbedded: true, address: 'G1u7waCh95ycC3tv8J2uXohDvStANsfogMZqWUhEDYxr'}
useCryptoPayment.ts:554 [CryptoPayment] Instructions built: {walletAddress: 'G1u7waCh95ycC3tv8J2uXohDvStANsfogMZqWUhEDYxr', senderAta: 'iD4re747mE9xg6rRjJBiPjMp6UipFNavD7ekDFc2Hxy', recipientAta: 'BZ2Ru9WovT3U8nFTsnCTnTDXGm8fQ1HUTNCH9vRphot8', rawAmount: 100000000000n}
useCryptoPayment.ts:583 [CryptoPayment] Balance check: {balance: '200000000000', required: '100000000000'}
useCryptoPayment.ts:599 [CryptoPayment] Using embedded wallet with gas sponsorship
useCryptoPayment.ts:609 [CryptoPayment] Sending via Privy with gas sponsorship
index.mjs:1 POST https://auth.privy.io/api/v1/wallets/o52ee0yhi4szyzceerhjyp9t/rpc 401 (Unauthorized)
[...]
installHook.js:1 {transaction: Uint8Array(387), error: r: Missing auth token.
at u.fetch (https://portal.rewbs.uk/_next/static/chunks/97e97_%40privy-i…}
installHook.js:1 Payment failed: _: Failed to connect to wallet
at Object.onFailure (useWallets-O-mGV40Z.mjs:1:12249)
at ot (StandardSignAndSendTransactionScreen-BuT88OVq.mjs:20:11912)
at executeDispatch (react-dom-client.development.js:20541:9)
at runWithFiberInDEV (react-dom-client.development.js:984:30)
at processDispatchQueue (react-dom-client.development.js:20591:19)
at react-dom-client.development.js:21162:9
at batchedUpdates$1 (react-dom-client.development.js:3375:40)
at dispatchEventForPluginEventSystem (react-dom-client.development.js:20745:7)
at dispatchEvent (react-dom-client.development.js:25671:11)
at dispatchDiscreteEvent (react-dom-client.development.js:25639:11)
Caused by: r: Missing auth token.
at u.fetch (PrivyInternal.mjs:1:1597)
at async t (rpc.mjs:1:382)
at async useWallets-O-mGV40Z.mjs:1:11515
at async Object.T [as onConfirm] (useWallets-O-mGV40Z.mjs:1:11331)
at async X.onClick (StandardSignAndSendTransactionScreen-BuT88OVq.mjs:20:14386)
useCryptoPayment.ts:532 [CryptoPayment] Payment initiated: {walletType: 'Phantom', isEmbedded: false, address: '6j8ATA2McaMNvSgqbQYDA1UoKySq2a7KMC6dDoMNYkiF'}
useCryptoPayment.ts:554 [CryptoPayment] Instructions built: {walletAddress: '6j8ATA2McaMNvSgqbQYDA1UoKySq2a7KMC6dDoMNYkiF', senderAta: '8jouQ31ipPsMuxdQwgCNT1BJiqkaTUBE53v3Ds6XmDeZ', recipientAta: '5eR7dyUaad3chbqvUaRpc4Y8yefRE8DfGLHYCfT9fFNP', rawAmount: 100000000000n}
useCryptoPayment.ts:583 [CryptoPayment] Balance check: {balance: '203000000000', required: '100000000000'}
useCryptoPayment.ts:637 [CryptoPayment] SOL balance check: {balance: 0.08277519, required: 0.001}
useCryptoPayment.ts:652 [CryptoPayment] Using fresh blockhash: BW5bViqqz92NdQcxbJs37CDuEaQDiLXwyGKF5yR8bzo3
useCryptoPayment.ts:671 [CryptoPayment] Transaction sent (external): {signature: '4q3Kgm4u8KaTg7bD5Pk6oaMQbfx4GtL2Sr6CL9xmgByLkGedDXG488umxxJUe73Ltwh4a7MLVFe3irPVeZvitmp3'}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944520n, lastValidBlockHeight: 372944642n, blocksRemaining: 122n}
useCryptoPayment.ts:285 [CryptoPayment] Status poll attempt 1: {signature: '4q3Kgm4u8KaTg7bD5Pk6oaMQbfx4GtL2Sr6CL9xmgByLkGedDXG488umxxJUe73Ltwh4a7MLVFe3irPVeZvitmp3', status: null}
useCryptoPayment.ts:285 [CryptoPayment] Status poll attempt 2: {signature: '4q3Kgm4u8KaTg7bD5Pk6oaMQbfx4GtL2Sr6CL9xmgByLkGedDXG488umxxJUe73Ltwh4a7MLVFe3irPVeZvitmp3', status: null}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944526n, lastValidBlockHeight: 372944642n, blocksRemaining: 116n}
useCryptoPayment.ts:285 [CryptoPayment] Status poll attempt 3: {signature: '4q3Kgm4u8KaTg7bD5Pk6oaMQbfx4GtL2Sr6CL9xmgByLkGedDXG488umxxJUe73Ltwh4a7MLVFe3irPVeZvitmp3', status: {…}}
useCryptoPayment.ts:685 [CryptoPayment] Transaction confirmed: {signature: '4q3Kgm4u8KaTg7bD5Pk6oaMQbfx4GtL2Sr6CL9xmgByLkGedDXG488umxxJUe73Ltwh4a7MLVFe3irPVeZvitmp3', confirmationStatus: 'confirmed'}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944532n, lastValidBlockHeight: 372944642n, blocksRemaining: 110n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944538n, lastValidBlockHeight: 372944642n, blocksRemaining: 104n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944543n, lastValidBlockHeight: 372944642n, blocksRemaining: 99n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944549n, lastValidBlockHeight: 372944642n, blocksRemaining: 93n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944556n, lastValidBlockHeight: 372944642n, blocksRemaining: 86n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944561n, lastValidBlockHeight: 372944642n, blocksRemaining: 81n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944567n, lastValidBlockHeight: 372944642n, blocksRemaining: 75n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944572n, lastValidBlockHeight: 372944642n, blocksRemaining: 70n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944577n, lastValidBlockHeight: 372944642n, blocksRemaining: 65n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944583n, lastValidBlockHeight: 372944642n, blocksRemaining: 59n}
useCryptoPayment.ts:323 [CryptoPayment] Block height check: {currentHeight: 372944588n, lastValidBlockHeight: 372944642n, blocksRemaining: 54n}
----( Response body (401) )----
{"error":"Missing auth token."}
----( Response headers )----
access-control-allow-credentials: true
access-control-allow-origin: https://portal.rewbs.uk
cache-control: public, max-age=0, must-revalidate
cf-cache-status: DYNAMIC
cf-ray: 9c11058eaa5a182f-SYD
content-length: 31
content-type: application/json; charset=utf-8
date: Tue, 20 Jan 2026 19:36:37 GMT
etag: "1msuqwd1rev"
referrer-policy: strict-origin-when-cross-origin
server: cloudflare
strict-transport-security: max-age=63072000
vary: Origin
x-content-type-options: nosniff
x-matched-path: /api/v1/wallets/[wallet_id]/rpc
x-vercel-cache: MISS
x-vercel-id: syd1::sin1::8tv62-1768937796926-71cc6e995935
curl 'https://auth.privy.io/api/v1/wallets/o52ee0yhi4szyzceerhjyp9t/rpc' \
-H 'accept: application/json' \
-H 'accept-language: en-AU,en-US;q=0.9,en;q=0.8,fr-FR;q=0.7,fr;q=0.6' \
-H 'authorization: Bearer eyJhbGciOiJFU***REDACTED***eg' \
-H 'content-type: application/json' \
-b 'cf_clearance=zC6L8***REDACTED***xCiZ5AI4EmLU8fJZr.zg; _cfuvid=oSKiL***REDACTED***sGY-1768707399102-0.0.1.1-604800000; notice_behavior=implied|oc; __cf_bm=u2DoFOS***REDACTED***10QDBUMasejvdsA.E-1768937296-1.0.1.1-nwfGm7EgkPcw3VDD14.4mNCVYySxU***REDACTED***o5ybuhqsXoleZSigskZMxuItfqbiQ' \
-H 'origin: https://portal.rewbs.uk' \
-H 'priority: u=1, i' \
-H 'privy-app-id: cmfw7lsqk00nrjj0d9kfq2lmd' \
-H 'privy-authorization-signature: MEY***REDACTED***uAUn' \
-H 'privy-ca-id: 7ee31824-c406-41a8-8108-7748919b7698' \
-H 'privy-client: js-sdk-core:0.58.7' \
-H 'referer: https://portal.rewbs.uk/' \
-H 'sec-ch-ua: "Google Chrome";v="143", "Chromium";v="143", "Not A(Brand";v="24"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'sec-fetch-storage-access: active' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36' \
--data-raw '{"chain_type":"solana","method":"signAndSendTransaction","sponsor":true,"params":{"transaction":"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQAFCN8aPF0N2/oraTad92ZhxZZYVK8z5MWhIxK51LkUz9nznMkSPkCt906Uvla2zA17g2RrghybS5zVsFHEMToFjH0KjnTv2hNfbSOJuuVIpO7s2D501oyXF2Yck0f61I0ohgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEU/19K9SLyEXMyOA36ObfwndcQvSlYtenHSwmn68RRmMlyWPTiSJ8bs9ECkUjg2DC1oTmdr/EIQEjnvY2+n4WfJFcU8C8yaGHwydiWNS3igbCG/WO/TWKg7B4Han96wnBt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKmFDa4LzSaq4qzm4kj4ZlWPkTizGOFYPbNiLsF226CJvQIFBgABBAYDBwEBBwQCBgEACgwA6HZIFwAAAAkA","encoding":"base64"},"caip2":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment