What is SDK?

1 min read Updated

An SDK (Software Development Kit) is a collection of tools, libraries, and documentation that simplifies development for a specific platform — providing pre-built functions for common blockchain operations.

WHY IT MATTERS

SDKs abstract blockchain complexity. Instead of manually encoding ABI calls, managing nonces, and handling gas estimation, an SDK provides clean functions: sdk.swap(tokenA, tokenB, amount). This dramatically reduces development time and error rate.

Major blockchain SDKs include: ethers.js and viem (Ethereum interaction), Wagmi (React hooks for Web3), Thirdweb (all-in-one Web3 development), and protocol-specific SDKs (Uniswap SDK, Aave SDK).

For agent development, SDKs provide the tools agents need to interact with blockchain: reading state, submitting transactions, and parsing events. Good SDKs handle edge cases that raw blockchain interaction would miss.

FREQUENTLY ASKED QUESTIONS

ethers.js vs viem?
ethers.js is the established standard — large ecosystem, extensive documentation. viem is newer — more TypeScript-native, better tree-shaking, stronger typing. Both are excellent; viem is gaining momentum.
Do I need a blockchain-specific SDK?
For basic interactions, ethers.js/viem suffice. For complex protocol interactions (Uniswap routing, Aave position management), protocol-specific SDKs save significant development time.
Can agents use SDKs?
Yes — agents typically interact with blockchain through SDK functions. The SDK provides the 'tools' that the agent's LLM decides to call based on its reasoning.

FURTHER READING

Enforce policies on every tool call

Intercept is the open-source MCP proxy that enforces YAML policies on AI agent tool calls. No code changes needed.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.