Skip to content

Commit 7e19e65

Browse files
authored
Merge branch 'main' into feat/customRPCForSends
2 parents 79fadca + f145143 commit 7e19e65

File tree

199 files changed

+390
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+390
-172
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ _types
6060
# TypeScript
6161
*.tsbuildinfo
6262
typescript/docs
63+
typescript/docs-md
6364

6465
# Go
6566
*.exe

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Usage: CDP_ACCESS_TOKEN=... uv run python end_user/validate_access_token.py
2+
3+
import asyncio
4+
from cdp import CdpClient
5+
import os
6+
from dotenv import load_dotenv
7+
8+
load_dotenv()
9+
10+
access_token = os.getenv("CDP_ACCESS_TOKEN")
11+
12+
if not access_token:
13+
raise ValueError("CDP_ACCESS_TOKEN must be set")
14+
15+
16+
async def main():
17+
async with CdpClient() as cdp:
18+
try:
19+
end_user = await cdp.end_user.validate_access_token(
20+
access_token=access_token,
21+
)
22+
print(end_user)
23+
except Exception as e:
24+
# Access token is invalid or expired
25+
raise e
26+
27+
28+
asyncio.run(main())

examples/python/evm/create_account.py renamed to examples/python/evm/accounts/create_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Usage: uv run python evm/create_account.py
1+
# Usage: uv run python evm/accounts/create_account.py
22

33
import asyncio
44

examples/python/evm/create_account_idempotency.py renamed to examples/python/evm/accounts/create_account_idempotency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Usage: uv run python evm/create_account_idempotency.py
1+
# Usage: uv run python evm/accounts/create_account_idempotency.py
22

33
import asyncio
44
import uuid

examples/python/evm/create_account_with_policy.py renamed to examples/python/evm/accounts/create_account_with_policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Usage: uv run python evm/create_account_with_policy.py
1+
# Usage: uv run python evm/accounts/create_account_with_policy.py
22

33
import asyncio
44

examples/python/evm/export_account.py renamed to examples/python/evm/accounts/export_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Usage: uv run python evm/export_account.py
1+
# Usage: uv run python evm/accounts/export_account.py
22

33
import asyncio
44

examples/python/evm/get_account.py renamed to examples/python/evm/accounts/get_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Usage: uv run python evm/get_account.py
1+
# Usage: uv run python evm/accounts/get_account.py
22

33
import asyncio
44

examples/python/evm/get_or_create_account.py renamed to examples/python/evm/accounts/get_or_create_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Usage: uv run python evm/get_or_create_account.py
1+
# Usage: uv run python evm/accounts/get_or_create_account.py
22

33
import asyncio
44

examples/python/evm/import_account.py renamed to examples/python/evm/accounts/import_account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Usage: uv run python evm/import_account.py
1+
# Usage: uv run python evm/accounts/import_account.py
22

33
import asyncio
44

0 commit comments

Comments
 (0)