Skip to content

Request access

Tell us about your processing, and we'll reply by email.

Concepts

Test and live keys

Portuna runs two separate environments, each with its own API address, data and gas wallet. An API key belongs to one of them, and its prefix tells which.

TestnetMainnet
API keysptn_test_…ptn_live_…
API base URLhttps://api-testnet.portuna.iohttps://api.portuna.io
ChainsSepolia, BSC testnetEthereum, BSC
Accesson request to [email protected]on request, by your organization’s owner

A test key works only on the testnet API and a live key only on the mainnet API. The SDKs and your own code can tell them apart by the prefix, for example to refuse a test key in production.

  • Create and revoke keys in the console, under API keys. An organization can have several, for example one per backend service.
  • The secret is shown once, when you create the key. Portuna stores only its hash, so a lost key cannot be shown again: create a new one.
  • A revoked key gets 401 unauthorized at once.
  • Send the key in every request as Authorization: Bearer <key>. Keep it on your backend: never in a browser, an app or a repository.
ChainChain IDNative coinTest USDTExplorer
Sepolia11155111ETH0x3809a97a7a25C8bA577027c0AE2D81a09cdA1a2fsepolia.etherscan.io
BSC testnet97BNB0x3809a97a7a25C8bA577027c0AE2D81a09cdA1a2ftestnet.bscscan.com
  • Gas comes from faucets: see the Quickstart.
  • The test USDT is a plain ERC-20 like USDT: 6 decimals and Transfer events. Anyone may mint it, up to 10,000 USDT per address an hour: mint(address,uint256); mintable(address) shows what is left. Or get it in the console, Tokens → Test USDT: Portuna mints it to the address and pays the gas, up to 50,000 USDT in 5 requests a day per organization. Mainnet has no such thing.
  • Fees are charged at your testnet rates, in test coins, so that you can check the numbers before going live.
  • Sepolia already runs the Glamsterdam gas rules (EIP-8037), which make first sweeps more expensive than on Ethereum mainnet today: see First and repeat sweeps.
ChainChain IDNative coinListed tokensExplorer
Ethereum1ETHUSDT 0xdAC17F958D2ee523a2206206994597C13D831ec7, USDC 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48etherscan.io
BSC56BNBUSDT 0x55d398326f99059fF775485246999027B3197955, USDC 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580dbscscan.com

Any other ERC-20 can be added by its contract address: see Tokens. Moving an integration from the testnet: Going live.