A Technical Deep Dive into PYUSD on Solana

by Solana Foundation

A Technical Deep Dive into PYUSD on Solana

The issues with legacy payment rails are well-known. They tend to be slow and expensive, involve too many intermediaries, require complicated arrangements such as pre-funding and liquidity requirements, and exclude the unbanked around the world. These faults are only exacerbated with cross-border transactions. 

PayPal USD (PYUSD) is a stablecoin that combines the payments expertise of PayPal with the technical expertise of the Solana blockchain. Previously only available on Ethereum, PYUSD has now expanded to Solana where it can settle near-instantly, is highly cost-efficient, truly global, and is available 24/7.

PYUSD is issued by Paxos Trust Company, a fully chartered, limited purpose trust company regulated by the New York State Department of Financial Services (NYDFS) . PYUSD is 100% backed by high-quality liquid assets and is redeemable 1:1 via PayPal with the US dollar. PYUSD transactions are subject to regular audits and daily attestations including the publication of monthly third-party attestation reports, and get support from PayPal’s reporting, fraud avoidance, and consumer protection tools.

PYUSD Use Cases 

Because PYUSD on Solana is fast, cheap, and global, it enables new payments use cases that legacy systems can’t support, such as:

  • Near-instant cross-border P2P payments - Consumers can send PYUSD to eligible persons worldwide with a Solana wallet, and the transfer settles near-instantly and for negligible cost. 
  • Cost-effective B2B transfers - With the open nature of PYUSD, businesses can build services to create near-instant, cost-effective transfers seamlessly across borders.
  • Simplified global payouts - PYUSD simplifies global payouts, eliminating the complicated network of regional bank accounts, currencies, correspondent banking, and digital wallet rails.
  • Microtransactions - PYUSD on Solana enables merchant platforms to process or stream microtransactions in real time and at a low cost. 

Web3 payments - PYUSD gives Web3 merchants, such as NFT marketplaces and blockchain-based gaming platforms, digitally native currencies that connect to traditional fiat bank accounts.

Where to Build with PYUSD

PYUSD is available on major Solana wallets and exchanges, including wallets such as Phantom and centralized exchanges such as Crypto.com. PYUSD is also available for eligible persons to buy, sell, and use within the PayPal ecosystem itself, through PayPal and Venmo. 

Developers can acquire test PYUSD on Solana on devnet through the PYUSD faucet.

Compliance in a box: Technical details of PYUSD on Solana

PYUSD on Solana was created as a fungible token using token extensions on Solana (TEs) — a token standard and set of extensions that offer out-of-the-box compliance frameworks. TEs are a program adhering to the SPL token standard, which provides more than a dozen audited extensions used to customize tokens. 

Using TEs as the core architecture of PYUSD brings many benefits, including: 

  • Reduced Development and Testing: Because TEs are reusable standards, they significantly reduce the time required to develop and test apps.
  • Enterprise Ready: TEs are plug-and-play ready. They offer a fast, reliable, and proven path to adding blockchain and PYUSD to apps.
  • Flexibility: TEs are an open standard that allows PYUSD to be integrated and used not only in the PayPal ecosystem, but outside of PayPal with any compatible wallet, exchange, or library.

Because PYUSD was built on the open standards of TEs, developers can freely include PYUSD in their apps, experiment with PYUSD, and build on top of PYUSD as needed.

PYUSD and token extensions

PYUSD implements several mint extensions. By design, mint extensions must be initialized upon token creation. Token creators can configure extensions after token creation, but token creators cannot add new extensions. Because of this requirement, several extensions have been initialized for PYUSD, but not all of them may be used.

  • Confidential transfers: allows merchants to provide confidentiality for transaction amounts to their consumers while maintaining visibility for regulatory purposes. (Note: This has not yet been enabled on Solana.)
  • Transfer hook: allows calling specific programs with each token transfer, enabling fine grained controls over how wallets can interact with the asset. As with transfer fees, this is initialized for potential future use but is currently initialized with a null program ID.
  • Permanent delegate: allows specifying a permanent delegate for a mint. This delegate has unlimited delegate privileges over any account for that mint, which means that it can burn or transfer any amount of tokens. This extension is critical for regulatory purposes, as it allows for seizing funds as required for compliance.
  • Metadata and metadata pointer: allows token creators to designate an address that describes the canonical (official) metadata for the token. This is used to store the name, ticker, and image in a standard manner.
  • Mint close authority: allows owners to close mint accounts and reclaim the lamports on the mint account. Although this may never be needed, it has been initialized in case it is needed in the future.

Transfer fees: allows transfer fees to be withheld on each transfer, that can be claimed by a defined account. This is included as a fail-safe and initialized to 0.

Integrating PYUSD

The PYUSD Mint Address is:

2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo

This address uniquely identifies the PYUSD token on the Solana network and should be used to integrate PYUSD into your application. You can inspect the details of the mint account on the Solana Explorer.

To learn more about how tokens are represented on the Solana network, visit the Tokens on Solana section of the documentation.

Learn more

PYUSD, an open, fully backed stablecoin pegged 1:1 to the US dollar, is now available on Solana. Combined with the speed, cost-effectiveness, and security of Solana, PYUSD enables a new set of payments use cases. 

Start building with Solana and PYUSD today. Request test PYUSD from the devnet faucet, learn more about TEs, and check out the PYUSD quick start guide.

Check out the PYUSD on Solana | Developer Workshop.

Learn from Solana Developers