Skip to content
Open
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
3 changes: 2 additions & 1 deletion docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,8 @@
"sdks/web3/viem",
"sdks/web3/cosmjs",
"sdks/web3/eip-1193",
"sdks/web3/solana"
"sdks/web3/solana",
"sdks/web3/gas-station"
]
},
{
Expand Down
8 changes: 8 additions & 0 deletions embedded-wallets/features/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ sidebarTitle: "Overview"
horizontal
/>

<Card
title="Gas Station SDK"
href="/sdks/web3/gas-station"
icon="fill-drip"
iconType="duotone"
horizontal
/>

<Card
title="Account abstraction wallets"
href="/reference/aa-wallets"
Expand Down
2 changes: 2 additions & 0 deletions networks/ethereum.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ You can take advantage of Type 4 transaction support on Turnkey to:
2. Create seamless applications with transaction batching: Bundle multiple operations into single transactions, significantly reducing gas costs and improving UX for complex DeFi or high-frequency trading.
3. Implement flexible authentication systems: Build applications that can leverage passkeys and biometrics while maintaining compatibility with existing EOA infrastructure and reputation systems.

For a turnkey solution to gasless transactions using EIP-7702, check out the [Gas Station SDK](/sdks/web3/gas-station), which provides clean abstractions for authorization, intent signing, and paymaster execution.

Type 4 transaction support is also live for our policy engine. Details about our engine language can be found [here](https://docs.turnkey.com/concepts/policies/language#struct), and an example demonstrating how to use @turnkey/viem to sign Type 4 transactions can be found [here](https://github.com/tkhq/sdk/blob/main/examples/with-viem/src/eip7702/signTransaction.ts).

### EIP-712
Expand Down
9 changes: 3 additions & 6 deletions sdks/web3/gas-station.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
---
title: "Gas Station SDK (Beta)"
title: "Gas Station SDK"
description: "A reusable SDK for implementing gasless transactions using EIP-7702, Turnkey wallet management, and your own paymaster."
mode: wide
---

<Warning>
**Beta Feature & Security Notice**: This feature is currently in **Beta**. The API may change as we gather feedback and improve the implementation. Additionally, the gas station contracts are in the process of being audited and should be used at your own discretion.
</Warning>

The Gas Station SDK enables you to implement gasless transactions using EIP-7702 delegation and EIP-712 signed intents. This SDK is designed to work with Turnkey-managed paymaster wallets within your organization, allowing you to sponsor transactions for your users so they can execute transactions without needing ETH for gas fees.

While your paymaster wallet should be managed by Turnkey, the user wallets signing the EIP-712 intents can be flexible - they can be Turnkey-managed or external wallets. Your Turnkey paymaster can broadcast intents signed by any compatible wallet. The SDK provides clean abstractions for EIP-7702 authorization, intent signing, and paymaster execution, supporting any onchain action through generic execution parameters.

The SDK also includes robust policy building utilities that simplify the process of creating Turnkey policies. These utilities help you restrict EIP-712 intent signing for user wallets and implement paymaster guard policies to control what transactions your paymaster will sponsor.

See the [main SDK documentation](https://github.com/tkhq/sdk/tree/main/packages/gas-station) for detailed API reference and implementation guides. For working examples, check out the [gas station examples](https://github.com/tkhq/sdk/tree/main/examples/tk-gas-station).
See the [main SDK documentation](https://github.com/tkhq/sdk/tree/main/packages/gas-station) for detailed API reference and implementation guides. For working examples, check out the [gas station examples](https://github.com/tkhq/sdk/tree/main/examples/tk-gas-station).