For the complete support model and current chain list, see the chain support
overview.
Integration steps
- Create a wallet for the target chain.
- Build and serialize a transaction with the chain’s SDK.
- Request a signature through the chain’s supported Privy signing interface.
- Attach the signature to the transaction.
- Broadcast the signed transaction through the chain’s RPC provider and track its status.
Aptos example
Below is a complete example of how to create a wallet, build a transaction, sign it with Privy’srawSign and broadcast it onchain. We use Aptos here, but the pattern is the same for all chains integrated through raw signing.
1
Create a wallet
2
Build the transaction
3
Sign with Privy
4
Broadcast the transaction
Chain-specific implementation examples
Sui
Sui supports multiple cryptographic schemes, with Privy’s implementation utilizing the Ed25519 curve and EdDSA signing algorithm. The following example demonstrates transaction signing for Sui, please note that the transaction bytes should be the full intentMessage: Privy’s “raw sign” endpoint supports policy evaluation forfield_source of sui_transaction_command and sui_transfer_objects_command with bytes,
encoding, and hash_function. Configure those decoded transaction rules with the
signTransactionBytes policy method. Message signing policies are also supported using
field_source of message with the signRawMessageBytes method when signing with hash.
See example of Sui policies.
When an
amount condition is configured on the sui_transfer_objects_command field_source,
always configure the sui_transaction_command to allow MergeCoins, SplitCoins and
TransferObjects only. Transactions containing commands like MakeMoveVec, MoveCall,
Publish, or Upgrade are not supported for now.
