Getting started
Going live
Your integration moves from the testnets to mainnet, Ethereum and BSC, as it is: the same API, SDKs, webhooks and contract code. What differs is your keys, your gas wallet and the addresses of your contracts.
What changes
Section titled “What changes”- Live keys and the live API. Live keys start with
ptn_live_and work only with the mainnet API,https://api.portuna.io. Your test keys stay on the testnets. - Access on request. Your organization’s owner requests live access in the console.
- A new gas wallet. The live gas wallet is a different address. Fund it on each chain you use.
- New contracts. Your batcher and delegates on mainnet are new contracts with new addresses: register your hot wallets again, check each delegate with verify-delegate, and sign new authorizations for mainnet.
Check on the testnet first
Section titled “Check on the testnet first”- Signing. Your HSM, KMS or MPC signs raw 32-byte digests, your code matches the test vector, and it refuses chain ID 0.
- Delegate checks.
verify-delegateruns before the first authorization for every hot wallet, for example in your onboarding script or CI. - Idempotency. Every sweep and revocation carries an
external_id, and your retries reuse it. See Idempotency. - Webhooks. Your receiver verifies signatures on the raw body, stores the event before it responds, drops
duplicate event ids, applies each item of a transaction event once, never lets a later
processingorqueuedreplace a final status, and accepts bodies of up to 256 KiB. See Webhooks. - Gas wallet. You know how fast you spend gas and have a low balance alert set.
- Amounts. Amounts are integers in the token’s smallest units. On mainnet, USDT and USDC have 6 decimals on
Ethereum and 18 on BSC: the same 1 USDT is
1000000on one chain and1000000000000000000on the other. - Native coin deposits. If your users send ETH or BNB from exchanges, read Deposits from exchanges before you delegate those addresses.
- Your settings. Decide whether to keep one unit on deposit addresses: see First and repeat sweeps.
Questions
Section titled “Questions”Ask us at [email protected], or [email protected] about terms.