## Documentation Index Fetch the complete documentation index at: https://docs.relay.link/llms.txt Use this file to discover all available pages before exploring further.
## Agent Instructions To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: npx -y @relayprotocol/relay-mcp. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.Installation
Installing and Configuring RelayKit Hooks
Installation
Use this lightweight React hook package to integrate Relay into your custom interface. Start by installing the required packages:
yarn add react react-dom viem @tanstack/react-query @relayprotocol/relay-kit-hooks
npm install --save react react-dom viem @tanstack/react-query @relayprotocol/relay-kit-hooks
pnpm add react react-dom viem @tanstack/react-query @relayprotocol/relay-kit-hooks
bun add react react-dom viem @tanstack/react-query @relayprotocol/relay-kit-hooks
If using typescript ensure that you're on v5+. Refer to the package json for the latest version requirements for the peer dependencies.
Tanstack Query Setup
The hooks require TanStack Query to be installed and configured. Refer to the Tanstack installation instructions. Once Tanstack is configured in your React application, that's all you need to get started.
Hooks
Each hook is configured separately to allow for as much flexibility as possible. All hooks come with a query function that can be used outside of a React context to fetch the data (useful when using SSR or in a context that doesn't use React).
This documentation is built and hosted on Mintlify, a developer documentation platform.