Skip to content

Commit 74e3f47

Browse files
committed
fix
1 parent 76d5464 commit 74e3f47

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

apps/dashboard/src/@/components/contracts/code-overview.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@ var contract = await ThirdwebManager.Instance.GetContract(
249249
var transactionReceipt = await contract.Write(wallet, contract, "{{function}}", weiValue, {{args}});`,
250250
},
251251
api: {
252-
read: `curl https://api.thirdweb.com/v1/contracts/read \\
252+
read: `# OR use secret key (backend only, not frontend): --header 'x-secret-key: <YOUR_SECRET_KEY>'
253+
curl https://api.thirdweb.com/v1/contracts/read \\
253254
--request POST \\
254255
--header 'Content-Type: application/json' \\
255-
--header 'x-client-id: YOUR_CLIENT_ID' \\
256-
# OR use secret key (backend only, not frontend): --header 'x-secret-key: YOUR_SECRET_KEY' \\
256+
--header 'x-client-id: <YOUR_CLIENT_ID>' \\
257257
--data '{
258258
"calls": [
259259
{
@@ -264,10 +264,10 @@ var transactionReceipt = await contract.Write(wallet, contract, "{{function}}",
264264
],
265265
"chainId": {{chainId}}
266266
}'`,
267-
write: `curl -X POST https://api.thirdweb.com/v1/contracts/write \\
267+
write: `# Note: Secret key should only be used in backend environments, not frontend
268+
curl -X POST https://api.thirdweb.com/v1/contracts/write \\
268269
-H "Content-Type: application/json" \\
269-
-H "x-secret-key: YOUR_SECRET_KEY" \\
270-
# Note: Secret key should only be used in backend environments, not frontend \\
270+
-H "x-secret-key: <YOUR_SECRET_KEY>" \\
271271
-d '{
272272
"calls": [
273273
{
@@ -279,11 +279,11 @@ var transactionReceipt = await contract.Write(wallet, contract, "{{function}}",
279279
"chainId": {{chainId}},
280280
"from": "0x1234567890123456789012345678901234567890"
281281
}'`,
282-
events: `curl https://api.thirdweb.com/v1/contracts/events \\
282+
events: `# OR use secret key (backend only, not frontend): --header 'x-secret-key: <YOUR_SECRET_KEY>'
283+
curl https://api.thirdweb.com/v1/contracts/events \\
283284
--request POST \\
284285
--header 'Content-Type: application/json' \\
285-
--header 'x-client-id: YOUR_CLIENT_ID' \\
286-
# OR use secret key (backend only, not frontend): --header 'x-secret-key: YOUR_SECRET_KEY' \\
286+
--header 'x-client-id: <YOUR_CLIENT_ID>' \\
287287
--data '{
288288
"contractAddress": "{{contract_address}}",
289289
"eventName": "{{function}}",

0 commit comments

Comments
 (0)