bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 12쪽 중 1쪽
Home
What is Safe?
Welcome
At
Safe
(opens in a new tab)
, we pursue a future where everyone has complete control and flexibility over their digital assets. Our vision is to move from merely reading and writing in the digital realm to fully owning our digital identities, financial assets, digital art, and more.
Smart accounts
While
externally-owned accounts
(EOAs) have been the cornerstone of digital assets management thus far, they have a lot of limitations and fall short in onboarding mainstream users. Not only are seed phrases cumbersome to secure, but the lack of flexibility and the limited security of EOAs hinder our progress toward actual digital ownership.
Safe is at the forefront of modular
smart account
infrastructure, paving the way for developers to create various applications and wallets. Safe brings digital ownership of accounts to everyone by building universal and open contract standards for the custody of digital assets, data, and identity.
Our stack
Our goal is to establish smart accounts as the default, and our approach to making this a reality has developed across two primary areas of focus:
Safe Infrastructure
The most secure and robust tooling and infrastructure to integrate Safe Smart Account and leverage account abstraction into your product.
Safe Wallet
Official interface designed for individuals and industries spanning various sectors, ensuring a seamless and secure digital asset management experience.
This documentation site is solely focused on
Safe Infrastructure
. Visit our
Help Center
(opens in a new tab)
to learn more about Safe Wallet.
Safe Infrastructure
Was this page helpful?
Report issue
## /sdk/overview
SDK
Overview
Safe SDK
The Safe SDK aims to bring Account Abstraction to life by integrating Safe with different third parties. This SDK helps developers to abstract the complexity of setting up a smart contract account.
The Safe SDK groups its functionality into four different kits:
Starter Kit
The
Starter Kit
is the starting point for interacting with the Safe smart account. It leverages and abstracts the complex logic from other kits while being modular and customizable, offering the most simplified way to deploy new accounts and handle the Safe transaction flow in all its different forms:
User operations
Multi-signature transactions
Off-chain and on-chain messages
Starter Kit
Learn about the Starter Kit and the Safe Smart Account integration.
Protocol Kit
The
Protocol Kit
helps interact with Safe Smart Accounts. It enables the creation of new Safe accounts, updating their configuration, and signing and executing transactions, among other features.
Modular and customizable smart contract accounts
Battle-tested security
Transaction batching
Protocol Kit
Learn about the Protocol Kit and the Safe Smart Account contracts integration.
API Kit
The
API Kit
helps interact with the Safe Transaction Service API. It helps share transactions among the signers and get information from a Safe account. For example, the configuration or transaction history.
API Kit
Learn about the API Kit and the integration with the Safe Transaction Service.
Relay Kit
The
Relay Kit
enables transaction relaying with Safe and allows users to pay for the transaction fees from their Safe account using the blockchain native token, ERC-20 tokens, or get their transactions sponsored.
Use ERC-4337 with Safe
Gas-less experiences
Sponsored transaction
Pay fees in ERC-20 tokens
Relay Kit
Learn about the Relay Kit and the pack integrating ERC-4337.
Resources
Safe Account Abstraction SDK on GitHub
(opens in a new tab)
Safe Account Abstraction SDK demo application
(opens in a new tab)
← Go Home
Starter Kit
Was this page helpful?
Report issue
## /core-api/api-overview
API
Overview
Safe Infrastructure
The Safe Infrastructure consists of the following services:
Safe Transaction Service
The Safe Transaction Service tracks transactions related to Safe contracts using tracing on Mainnet, Sepolia, and Gnosis Chain. It uses event indexing for the other chains. For each supported network there is one instance of the Transaction Service.
Safe Events Service
The Events Service handles Safe indexing events and delivers them as HTTP webhooks, connection to the events queue processed by the Transaction Service. The service's database stores the configuration of webhook destinations.
Architecture
Safe{Wallet} uses these services to offer functionality to end customers via the web and mobile applications. The
Safe Client Gateway
(opens in a new tab)
acts as a facade between the end customer and the Safe Infrastructure services and the
Safe Config Service
(opens in a new tab)
stores all supported networks and chain-specific variables.
Safe's production setup consists of several instances of the Transaction Service orchestrated by the Config Service, which are later consumed by the Safe Client Gateway. The Events Service notifies the Safe Client Gateway when new events are indexed, helping to improve the user experience.
Integration Flow
The Client Gateway leverages the Config Service to find the Transaction Service instance required for a specific request.
The Client Gateway forwards the request to the specified Transaction Service instance for the supported networks (determined by the Config Service).
The Client Gateway transforms, aggregates, and caches information from the Config and Transaction Services, optimizing data for Safe's web and mobile clients.
The Event Service provides information to the Client Gateway when the Transaction Service indexes an event using webhooks. The Client Gateway is then responsible for providing this information to the end clients.
Even though the Config Service and Transaction Service instances are reachable by clients that aren't the Client Gateway, this may change in the future. The Client Gateway is the outermost component of the Safe Infrastructure and should be the single point of communication with any front-end client.
Rate limits
Safe Infrastructure services enforce rate limits based on your plan. See
API Keys & Authentication
to get started and
Quotas & Limits
for enforcement details.
Running locally
Safe Infrastructure
(opens in a new tab)
repository and the
running services locally
(opens in a new tab)
guide show how to run Safe's infrastructure (
Safe{Wallet}
(opens in a new tab)
and the backend services). Note that these documents are examples of how these services run, and the configuration should adapt to the needs of a specific use case.
← Go Home
API Keys & Authentication
Was this page helpful?
Report issue
## /advanced/smart-account-overview
Contracts
Overview
How do Safe Smart Accounts work?
EOAs
EOAs
, for short, are Ethereum accounts that use traditional key pairs. That is, they consist of a single private key that can be used to make transactions and sign messages. If you gain access to that private key, you gain complete control of the account. This means that your private key is a single point of failure between you and your funds being lost.
Smart Accounts
The other type of Ethereum account is a
Smart Account
, also sometimes called Smart Contract Account. Like EOAs, smart contract accounts each have a unique public Ethereum address, and it is impossible to tell them apart from EOAs by looking at an Ethereum address. Smart contract accounts, too, can receive funds and make transactions like EOAs but cannot initiate them. Generally, the key difference is that no single private key is used to verify transactions. Instead, the smart contract code defines the logic behind how the account completes transactions. Smart contracts are programs that run on the Ethereum blockchain and execute when specific conditions are met. Their functionality within contract accounts means that such accounts, in contrast to EOAs, can, for example, implement access rights that specify by whom, how, and under which conditions transactions can be executed, as well as more complex logic.
Difference between EOAs and Contract Accounts
Safe Smart Account
Safe Smart Account is a Smart Account with multi-signature functionality at its core. It is secure and flexible, and it can be used to manage funds and execute transactions on the Ethereum blockchain.
The vision for Safe Smart Accounts is to become the standard core used in all smart contract-based wallets. It also aims to make the benefits of Account Abstraction accessible to users and developers.
The architectural design of Safe Smart Account keeps the following principles in mind.
Secure default
Uses a multi-signature logic where a threshold of owners must confirm a transaction before execution to provide a secure default without trusting any additional contract—for example, a module, guard, or fallback handler (explained below).
Maximum flexibility
Supports modules that execute transactions using alternative access patterns (instead of multi-signature). It also supports the
delegatecall
function, which introduces complex execution logic by loading instructions from other contracts and executing via a Safe Smart Account.
Features
High Security
Safe's
multi-signature
functionality allows you to define a list of owner accounts and a threshold number of accounts required to confirm a transaction. Once the threshold of owner accounts have confirmed a transaction, the Safe transaction can be executed. Owners can be EOAs, other smart contract accounts, or even a passkey.
Advanced execution logic
It is possible to use different
Safe Library contracts
to perform complex transactions. A prevalent example is
batched transactions
, where multiple simple Ethereum transactions are combined and executed at once. That means instead of having to sign several transactions sequentially, a user just needs to sign one batched transaction.
Advanced access management
You can add
Safe Modules
to your Safe, which facilitates more fine-grained access management. For instance, defining a module that can only be used to
recover access
to a Safe under specific circumstances is possible. Another example is
allowance modules
that allow owners of a Safe to grant limited execution permission, such as a daily limit to external accounts.
Token callback support
Many new tokens require wallet contracts to implement callbacks. Token standards like
ERC-721
and
ERC-1155
allow contracts to immediately react to receiving tokens through these and make it even possible to reject the transfer altogether.
Sponsored transactions
Another core functionality of the Safe is
token payment
. Generally, Ethereum transactions require ETH to pay transaction fees ("gas"). With the Safe, users can pay transaction fees in several supported ERC20 tokens. This is realized via a transaction relay service that accepts those tokens and submits the transactions to the blockchain, paying the gas fee in ETH. With the same functionality, Ether-less transactions can be implemented, where a 3rd party pays transaction fees on behalf of a Safe via the same relay service.
Architecture
Safe Singleton Factory
The Safe Singleton Factory is a contract that deploys all the Safe Smart Account related contracts. This contract helps to deploy Safe Smart Account contracts at the same address across different networks and eventually also helps to deploy Safe proxies at the same address across different networks.
For more information, refer to the
Safe Singleton Factory
(opens in a new tab)
repository.
Safe Proxy Factory
The Safe proxy factory contract provides a simple way to create a new proxy contract pointing to a singleton and executing a setup function in the newly deployed proxy all in one transaction.
Safe
This is a singleton contract deployed only once and used by Safe Proxy to delegate calls. It is the main contract that holds the logic for signature verification, executing transactions, managing owners, modules, and the fallback handler.
As a singleton contract, it cannot be used directly as a Safe account but only through a Safe Proxy contract.
The two types of Safe Smart Accounts are:
Safe
SafeL2: The version emits additional events and is to be used for L2 chains that don't support tracing.
Hint: For legacy reasons they are referred as Safe.
A Safe contract itself is composed of different contracts. The diagram below shows the main components of a Safe contract.
Owner Management
One core feature of a Safe account is that it can be operated by multiple accounts, known as owners.
OwnerManager.sol
allows you to add, remove, and replace owners. Furthermore, a threshold number of owners required to confirm a transaction for it to be executed can be specified and modified. You can retrieve the list of owners. Events are emitted every time an owner is added or removed and whenever the threshold changes.
Module Management
Modules add additional functionalities to the Safe accounts. They are smart contracts that implement Safe's functionality while separating module logic from Safe's core contract. Depending on the use case, modules could, for instance, allow the execution of transactions without requiring all confirmations. A basic Safe does not require any modules. Adding and removing a module requires confirmation from the required threshold of owners. Modules are very security-critical, so they need to be as secure as all other Safe contracts.
Some of the available modules are:
Allowance Module
(opens in a new tab)
Recovery Module
(opens in a new tab)
4337 Module
(opens in a new tab)
Passkey Module
(opens in a new tab)
Executor
This contract contains the logic to execute
call
or
delegatecall
to external address.
Fallback Manager
Ethereum fallback functions are executed when a called function signature does not match any defined function. Specific use cases require those fallback functions to contain some logic. EVM limits the size of a Smart contract to 24KB. The Fallback Manager contract allows you to extend the functionality of the Safe contract by adding additional logic to the fallback function and overcoming the contract size limit.
Guard Management
Guards are used to check if a transaction should be executed or rejected based on the logic defined in the guard. A Guard Manager contract allows you to add, remove, and replace guards. Guards are security critical as a malicious guard could prevent transactions from being executed and block access to funds stored in the Safe. Events are emitted whenever a guard is updated.
SafeProxy
A Safe Proxy is a contract that delegates all calls to the Safe Singleton. Deploying a Proxy reduces the cost of creating a Safe account, as the proxy contract's byte code size is less than that of the actual Safe contract code.
← Go Home
Concepts
Was this page helpful?
Report issue
## /resource-hub
Resource Hub
Example:
4337
,
Introduction
,
7579
27
result
s
Filter
Suggest new resource
Resource type
Blog Post
Podcast
Video
Source
Community
Safe Team
Topics
4337
Introduction
7579
7702
Account Abstraction
AI
Deep Dive
Passkeys
Permissionless
Perspectives
React
React Native
Safe Core SDK
Safe Smart Account
Safe Transaction Service
Security
Signer
Tutorial
Vue
WalletConnect
Create an AI agent that can interact with your Safe
February, 2025
In this tutorial, we will learn how to set up and deploy an AI agent that has capabilities to access a Safe and prepare transactions for it 🤖.
Blog Post
Tutorial
Safe Core SDK
AI
Workshop: Build reliable AI agents with Safe capabilities
February, 2025
In this Webinar, Safe developer Louis will provide an introduction into how to setup your AI agent with a Safe Smart Account.
Video
Tutorial
Safe Core SDK
AI
Workshop: Safe{Core} SDK introduction and AI agents setup
February, 2025
In this Webinar, Safe developers Germán and Daniel provide a brief introduction how to set up a Safe Smart Account for your AI agent.
Video
Tutorial
Safe Core SDK
AI
How to build a React Native app with Safe and passkeys
January, 2025
An increasing number of applications rely on passkeys to authenticate users securely and with little friction. Security and user-friendliness are crucial to...
Blog Post
Tutorial
Safe Smart Account
Passkeys
React Native
4337
EIP-7702 Safe Webinar and Demo
December, 2024
In this Webinar, Safe developers Akshay and Germán talk about the EIP-7702 demo. It shows how to convert an EOA into a Smart Account and send a sponsored batched transaction.
Video
Tutorial
Safe Smart Account
7702
How to Use Dynamic in a Safe App
October, 2024
In this guide, you'll learn how to integrate Dynamic with the Safe App environment.
Blog Post
Tutorial
Signer
Convert an EOA to a Smart Account with EIP-7702
October, 2024
EIP-7702 will ship with the upcoming Ethereum hardfork (Pectra) in 2025.With this POC you can already try out, how to convert an EOA into a Smart Account and...
Video
Tutorial
Safe Smart Account
7702
How to build a React app with Safe and passkeys – Safe Docs
August, 2024
This tutorial will teach you to create a React app for using passkeys in your Safe. You will learn how to use passkeys (create, store, and use them securely) and how they can interact with a Safe.
Blog Post
Tutorial
Safe Core SDK
Passkeys
React
How to build a Vue app with Safe and passkeys – Safe Docs
August, 2024
This tutorial will teach you to create a Vue app for using passkeys in your Safe. You will learn how to use passkeys (create, store, and use them securely) and how they can interact with a Safe.
Blog Post
Tutorial
Safe Core SDK
Passkeys
Vue
How to build an app with Safe and ERC-7579 – Safe Docs
August, 2024
This tutorial will teach you how to deploy an ERC-7579-compatible Safe Smart Account and use an ERC-7579-compatible module, the Scheduled Transfer from Rhinestone.
Blog Post
Tutorial
Permissionless
7579
Using Passkeys with Safe
August, 2024
In this tutorial video, you will learn how to use a passkey as a signer for a Safe in three simple steps.
Video
Tutorial
Passkeys
Permissionless
4337
React
Signer
Building with the Safe 4337 Module
August, 2024
The workshop focuses on the Safe 4337 Module and covers the process of building decentralized applications (dApps) using this module.
Video
Safe Smart Account
4337
Safe Core SDK
Show more
Listings are not endorsements and are only for educational purposes.
## /home/safe-core
Home
Safe Infrastructure
Safe Infrastructure
Safe Infrastructure
(opens in a new tab)
is an open-source and modular account abstraction stack. It's the essential tooling and infrastructure for integrating the Safe Smart Account into any digital platform, ensuring a tested core with flexible and secure capabilities for innovative applications.
Why build on Safe?
Safe secures an extensive amount of assets. It has been thoroughly audited and tested since 2018, and it has become the default wallet of choice for many, including DAOs, web3 native companies, and individuals like Vitalik Buterin, who trust Safe with their own assets. In addition, over 200 projects are currently building on top of Safe, and it's expected that this number will only continue to grow.
$100B+ secured
Formally verified
200+ projects
With Safe Infrastructure, we are putting a modular stack in the hands of developers to build the next generation of account abstraction wallets and solutions. We have partnered with the best in the business to improve UX capabilities and compatibility with existing ecosystem tools.
Our stack
The Safe Infrastructure stack is categorized into three distinct groups:
Safe SDK
The SDK offers developers the ability to abstract the complexity that comes with operating a smart contract account. It also provides developer kits to help integrate Safe with external service providers.
Safe API
The Safe infrastructure needed to power interfaces with all Safe account related information. This includes the Safe Transaction Service, Safe Events Service, etc.
Safe Smart Account
The modular and프로젝트로 돌아가기