PAW Documentation

API

PAW Chain API

PAW Chain L3 offers a comprehensive API panel that serves as a gateway to all its blockchain functionalities. This API panel is designed to be developer-friendly, enabling seamless integration with various applications and services. Here's a detailed overview of the key APIs available within PAW Chain L3:

Bridge Management API

       
  • POST /api/addBridgeNetwork: Adds a new bridge token network.
  •    
  • POST /api/createBridgeToChain: Initiates a bridge transaction to another blockchain.
  •    
  • POST /api/initBridgedToken: Initializes a bridged token for use within the network.

Ledger Management API

       
  • POST /api/balanceUpdateViaBridge: Updates the balance for a bridged token.
  •    
  • GET /api/initializeLedgerBalance: Retrieves the initial ledger balance.
  •    
  • POST /api/tokenTransferOnChain: Transfers tokens within the chain.

Validator Management API

       
  • POST /api/cancelValidator: Cancels the validator status of a single user.
  •    
  • POST /api/createInitValidator: Initializes a new validator.
  •    
  • GET /api/getValidatorDataByWallet: Retrieves validator data for a specific wallet.
  •    
  • POST /api/initiateValidatorsCancel: Cancels the validator status for all users if the status is pending.
  •    
  • POST /api/redeemReward: Redeems rewards for validators.
  •    
  • POST /api/requestCancelValidator: Requests the cancellation of a validator status.

Wallet Management API

       
  • GET /api/checkNameExist: Checks if a wallet name already exists.
  •    
  • GET /api/checkWalletValidation: Validates a wallet.
  •    
  • POST /api/createName: Creates a new wallet name.
  •    
  • POST /api/createSecurityPhrase: Creates a security phrase for wallet recovery.
  •    
  • POST /api/createWallet: Creates a new wallet.
  •    
  • PUT /api/executePasswordChange: Changes the wallet password.
  •    
  • GET /api/getTokenAuthorization: Checks wallet authentication via token.
  •    
  • GET /api/getTokenAuthorizationWithAllData: Checks wallet authentication via token with all related data.
  •    
  • GET /api/getWalletAuthorization: Checks wallet authorization.
  •    
  • GET /api/getWalletByChainAddress: Retrieves a wallet by its chain address.
  •    
  • POST /api/loginWallet: Logs into a wallet.

Pool Management API

       
  • POST /api/createPool: Creates a new liquidity pool.
  •    
  • POST /api/createPoolShareCollector: Creates a pool share collector.
  •    
  • GET /api/getLiquidityTokens: Retrieves liquidity tokens.
  •    
  • GET /api/getPoolShareRate: Retrieves the share rate for a pool.
  •    
  • GET /api/getPoolTokensByWallet: Retrieves pool tokens associated with a wallet.
  •    
  • GET /api/pairPrice: Retrieves the USD price of a pool.
  •    
  • DELETE /api/removeLiquidity: Removes liquidity from a pool.

Transaction Management API

       
  • POST /api/createTransaction: Creates a new transaction.
  •    
  • GET /api/getEstimateFee: Retrieves an estimated fee for a transaction.
  •    
  • GET /api/getFeeCollector: Retrieves the fee collector data.
  •    
  • GET /api/getFees: Retrieves fee information.
  •    
  • GET /api/getTransactions: Retrieves a list of transactions.
  •    
  • GET /api/getTxs: Retrieves transactions.

Multisig Management API

       
  • POST /api/enableMultisig: Enables multisig for a wallet.
  •    
  • GET /api/checkMultisig: Checks if multisig is enabled for a wallet.

Token Management API

       
  • GET /api/getBridgeTokensTo: Retrieves tokens bridged to another network.
  •    
  • GET /api/getTokenByTokenAddress: Retrieves a token by its address.
  •    
  • GET /api/getWalletTokens: Retrieves all tokens associated with a wallet.

Swap Management API

       
  • GET /api/getSwapPrice: Retrieves the swap price between tokens.
  •    
  • GET /api/pairSwaps: Retrieves swap transactions.
  •    
  • POST /api/swapRouter: Creates a swap router.

PAW Chain L3 also includes a suite of test APIs designed to assist developers during the development process. These test APIs allow developers to simulate various operations, ensuring their applications interact correctly with the blockchain before deployment. These APIs help validate the functionality and integration of wallet operations, transactions, and other blockchain interactions in a controlled environment.