Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions examples/defi/with-earn/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Example: `with-earn`

> [!NOTE]
> Turnkey Earn is in **early access**. The APIs are gated and may change; reach
> out to Turnkey to have it enabled for your organization.

Turnkey Earn end to end with `@turnkey/sdk-server`: deploy a fee wrapper for a
Morpho vault (one-time, from the parent org), then deposit, poll status, read
positions, and withdraw (partial or full) from the end-user wallet.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Example: `execute-swap`
# Example: `with-swap`

> **Closed beta:** Turnkey Swap is currently in closed beta. Your organization must be allowlisted (with the relevant swap feature flags enabled) before this example will work.

This example uses the typed swap methods from `@turnkey/sdk-server`. It submits create-swap-quote V3 and execute-swap V4 activities.
This example uses the typed swap methods from `@turnkey/sdk-server`.

By default it is configured for Solana mainnet SOL → USDC. Token pair and amount are driven by env vars (`FROM_TOKEN` / `TO_TOKEN` as CAIP-19 asset IDs, `AMOUNT` in base units), so you can point it at other supported pairs without code changes.

Expand All @@ -27,7 +25,7 @@ $ cd sdk/
$ corepack enable
$ pnpm install -r
$ pnpm run build-all
$ cd examples/defi/execute-swap/
$ cd examples/defi/with-swap/
```

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@turnkey/example-execute-swap",
"name": "@turnkey/example-with-swap",
"private": true,
"version": "0.1.0",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Example: `with-paymaster`
# Example: `with-evm-paymaster`

This example shows how to send an erc-20 token on evm networks using Turnkey's paymaster (gas sponsorship).

Expand All @@ -19,7 +19,7 @@ $ cd sdk/
$ corepack enable # Install `pnpm`
$ pnpm install -r # Install dependencies
$ pnpm run build-all # Compile source code
$ cd examples/transaction-management/with-paymaster/
$ cd examples/transaction-management/with-evm-paymaster/
```

### 2/ Setting up Turnkey
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Example: `with-tx-webhooks`
# Example: `with-transaction-webhooks`

This example demonstrates Turnkey webhook subscriptions for three event types:

Expand Down Expand Up @@ -38,7 +38,7 @@ pnpm install
From this example directory:

```bash
cd examples/transaction-management/with-tx-webhooks
cd examples/transaction-management/with-transaction-webhooks
cp .env.example .env
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@turnkey/example-with-tx-webhooks",
"name": "@turnkey/example-with-transaction-webhooks",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
70 changes: 35 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading