Home
Chain iconDeFi

Build and scale your DeFi app

Integrate our API suite for low latency and peak reliability.

subgraphs-hero

  • gmx-logo
  • 0x logo
  • aave-logo
  • layer zero logo
  • makerdao
  • gmx-logo
  • 0x logo
  • aave-logo
  • layer zero logo
  • makerdao

Build your DeFi app with Alchemy

subgraphs-indexing
zero friction onboarding
precise data for any activity

Your DeFi toolbox

embedded accounts
Embedded Accounts
Card background image

Plug-n-play web3 accounts with web2 UX

Make wallets invisible. Simple, non-custodial accounts to onboard users and transact with web2 UX.

Code preview

Copied
// 1. Auth Your User const signer = new AlchemySigner({ client: { connection: { rpcUrl }, iframeConfig: { iframeContainerId: "alchemy-signer-iframe-container" }, }, }) signer.authenticate({ type: "email", email: "[email protected]", bundle }); // 2. Create an Account const account = await createMultiOwnerModularAccount({ transport, chain, signer, }); // 3. Use web3! account.signMessage({ message: "Hello, World!" });
Subgraphs
Subgraphs
Card background image

Speedy indexing for custom GraphQL APIs

Ship faster with a custom API for your onchain data. Never worry about subgraph downtime or lag again.

Code preview

Copied
cd <SUBGRAPH_DIRECTORY> graph deploy <SUBGRAPH_NAME> \ --version-label <VERSION_NAME> \ --node https://subgraphs.alchemy.com/api/subgraphs/deploy \ --deploy-key <DEPLOY_KEY> --ipfs https://ipfs.satsuma.xyz
Custom Webhooks
Custom Webhooks
Card background image

Real-time data. Any blockchain event.

Infinite data access, precise filter controls.

Code preview

Copied
curl --request POST \ --url https://dashboard.alchemy.com/api/graphql/variables/variable \ --header 'content-type: application/json'
Token API
Token API
Card background image

Token balances and metadata

The token data your users expect, no token list required. Available on all EVM-supported chains.

Code preview

Copied
curl --request POST \ --url https://eth-mainnet.g.alchemy.com/v2/docs-demo \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "alchemy_getTokenBalances", "params": [ "0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5", "erc20" ] } '
Transfers API
Transfers API
Card background image

Portfolio management, simplified

100x faster than others. One request to get all historical transaction activity, including internal transfers.

Code preview

Copied
curl --request POST \ --url https://eth-mainnet.g.alchemy.com/v2/docs-demo \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "alchemy_getAssetTransfers", "params": [ { "fromBlock": "0x0", "toBlock": "latest", "toAddress": "0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1", "withMetadata": false, "excludeZeroValue": true, "maxCount": "0x3e8" } ] } '
Transact
Transact
Card background image

Cheaper, faster, safer transactions

7.9x faster, 100% success rate. Transaction simulation, frontrunning protection, and real-time notifications.

Code preview

Copied
curl --request POST \ --url https://eth-mainnet.g.alchemy.com/v2/docs-demo \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "method": "alchemy_sendGasOptimizedTransaction" } '

Supported chains

Ethereum
Phantom

Ethereum

Arbitrum
Arbitrum Logo

Arbitrum

Optimism
Optimism Logo

Optimism

Polygon zkEVM
Icon

Polygon zkEVM

Starknet
Starknet Logo

Starknet

Base
Base Logo

Base

zkSync
zksync icon

zkSync

Solana
Logo

Solana

Astar
Astar Logo

Astar

Case Studies

A proven track record

Tab image
"Working with Alchemy has helped us save the equivalent of 3 full-time engineers, who otherwise would have to be heads down on infra maintenance, at all times."
Evgeny Yurtaev headshot

Evgeny Yurtaev

CEO & Co-founder, Zerion

Build the future of finance

Power DeFi transactions and wallets participating in decentralized finance.

Get your API key
    Decentralized and transparent
    Decentralized and transparent

    DeFi runs on decentralized protocols rather than banks or governments, providing more transparency for your users.

    Better efficiencies through automation
    Better efficiencies through automation

    DeFi automates data and processes through smart contracts, making it more efficient than human-operated systems.

    New yield opportunities
    New yield opportunities

    New ways to earn for your users, including yield farming, swapping, staking, and accessing liquidity pairs & reserves.

Banner background image

Get in touch with us

Reach out to us if you are interested in getting involved with decentralized finance or building a DeFi application on Alchemy.

Section background image

Build blockchain magic

Alchemy combines the most powerful web3 developer products and tools with resources, community and legendary support.

Get your API key