How to use the APIs
Wallet service provides the following APIs to the users for effective wallet management.
CREATE/FETCH PROVIDER LEVEL SPONSOR ACCOUNT API Provides the public key of the wallet provider's level sponsor wallet. It creates the account if it does not exist and generates a key pair for that account.
CREATE WALLET ACCOUNT API Used to create a wallet account under a customer by utilizing the wallet legal representative users associated with that customer. This account is used to manage different digital assets.
APPROVE WALLET API Approves the created wallet, triggering notifications to all legal representatives associated with that account to generate their keys for the account.
MANAGE SIGNERS (ADD SIGNERS & REMOVE SIGNERS) API Used to add or remove wallet signers by account ID. It creates a ticket with an unsigned envelope, utilizing updating legal representative details.
APPROVE MANAGE SIGNERS TICKETS API Approves or signs the manage signers tickets, facilitating the addition or removal of signers from the wallet account.
SEND API Initiates the transfer of funds from one wallet account to another wallet account. It creates a ticket for the transaction with an unsigned envelope.
RECEIVE API Gets the public key to receive amounts from other wallets.
DEPOSIT API Initiates the deposit process following the SEP-24 protocol.
DEPOSIT APPROVE API Approves the deposit ticket, finalizing the deposit process.
WITHDRAW API Initiates the withdrawal process following the SEP-24 protocol.
SWAP ESTIMATE API Fetches estimates for a swap transaction.
SWAP API Executes a swap transaction between different digital assets.
APPROVE THE TRANSACTION TICKETS API Approves or signs the transaction tickets, ensuring the validity and integrity of the transactions.
TRANSACTION LOGS API Gets transaction logs, providing a comprehensive record of transaction activity within the wallet system.