This quick start guide will get you up and running with the Portal MPC API.
mpc-client.portalhq.io
. This API allows you create, backup, and recover Portal MPC Wallets. It also allows you to sign messages and transactions for EVM and Solana chains.
The Enclave MPC API at mpc-client.portalhq.io
lets you create, backup, and recover Portal MPC wallets, and sign transactions for EVM and Solana chains. This guide gets you started quickly — see the Enclave MPC API Guide for details.
Authorization: Bearer
header. You can get a test Client API Key from the Portal Admin Dashboard in the Settings
-> Test Client API Keys
section. Simply click the New +
button.
A modal will then be presented, allowing you to copy your test Client API Key. You can repeat this process as many times as you want to.
/v1/generate
endpoint:
SECP256K1
(EVM) and ED25519
(Solana) curves. Example response:
PATCH
request. Pass in the id
values for each of the SECP256K1
and ED25519
objects.
metadata.namespaces
property, as allows you to easily access your wallet’s addresses on various blockchains.
Example Response
ETH
on Ethereum Sepolia. If you need testnet tokens on other blockchains, we recommend checking out our Testnet Faucets doc.
/v1/assets/send
endpoint.
share
/v1/generate
’s response’s share
property for the SECP256K1
object.chain
sepolia
) or the CAIP-2 chain identifier.token
ETH
or NATIVE
) or the token address of the token you want to send.to
amount
rpcUrl
transactionHash
on sepolia.etherscan.io to view the transaction details.
transactionHash
is actually a User Operation hash. You can manually look up the user operation hash here.ED25519
share from the generate response and solana-devnet
as our chain.
SOL
to submit a Solana transaction, which is not currently supported by portal.receiveTestnetAsset
. You can find a faucet to get test SOL
tokens here.transactionHash
on solscan.io?cluster=devnet to view the transaction details.