Json RPC

Kaanch Network RPC Methods Documentation

This document provides a detailed overview of the various RPC methods available in the Kaanch Network. Each method purpose, required parameters, and example request/response formats are included to help developers interact with the Kaanch Network effectively.

Documentation for RPC Methods

Kaanch Network Testnet RPC #

https://full-testnet-rpc.kaanch.network

Kaanch Network Mainnet RPC #

https://rpc.kaanch.network //not yet live

General Information

Each method requires an HTTPS POST request with a JSON body following the JSON-RPC 2.0 specification. The structure of the request includes:

  • jsonrpc: The version of the JSON-RPC protocol, which should be "2.0".

  • method: The name of the method to be invoked.

  • params: An array of parameters to be passed to the method.

  • id: A unique identifier for the request.

Methods and Usage

  1. eth_accounts

    • Description: Returns a list of accounts owned by the client.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_accounts",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": ["0xYourAccountAddress"]
      }
  2. eth_blockNumber

    • Description: Returns the number of the most recent block.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_blockNumber",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0xBlockNumberInHex"
      }
  3. eth_chainId

    • Description: Returns the chain ID of the current network.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_chainId",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0x16D"
      }
  4. net_version

    • Description: Returns the current network ID.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "net_version",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "365"
      }
  5. net_listening

    • Description: Returns true if the client is actively listening for network connections.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "net_listening",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": true
      }
  6. eth_estimateGas

    • Description: Estimates the gas needed to execute a transaction.

    • Parameters: Transaction object.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_estimateGas",
        "params": [{}],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0x5208"
      }
  7. eth_gasPrice

    • Description: Returns the current price per gas in wei.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_gasPrice",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0x12A05F200"
      }
  8. eth_getBalance

    • Description: Returns the balance of the account at the given address.

    • Parameters: Address, block number (optional).

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_getBalance",
        "params": ["0xAddress", "latest"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0xBalanceInHex"
      }
  9. eth_getTransactionCount

    • Description: Returns the number of transactions sent from an address.

    • Parameters: Address, block number (optional).

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_getTransactionCount",
        "params": ["0xAddress", "latest"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0xCountInHex"
      }
  10. eth_sendRawTransaction

    • Description: Sends a raw transaction.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_sendRawTransaction",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0xTransactionHash"
      }
  11. eth_getTransactionReceipt

    • Description: Returns the receipt of a transaction by transaction hash.

    • Parameters: Transaction hash.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_getTransactionReceipt",
        "params": ["0xTransactionHash"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* transaction receipt object */ }
      }
  12. eth_getTransactionByHash

    • Description: Returns the information about a transaction requested by transaction hash.

    • Parameters: Transaction hash.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_getTransactionByHash",
        "params": ["0xTransactionHash"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* transaction object */ }
      }
  13. eth_getTransactionHistory

    • Description: Returns the transaction history for a given address.

    • Parameters: Address, size of the result.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "eth_getTransactionHistory",
        "params": ["0xAddress", 10],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* transaction history array */ ]
      }
  14. kaanch_getTransactionHistorybycontract

    • Description: Returns the transaction history for a given address and contract.

    • Parameters: Address, contract address, size of the result.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_getTransactionHistorybycontract",
        "params": ["0xAddress", "0xContractAddress", 10],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* transaction history array */ ]
      }
  15. kaanch_toptokenholder

    • Description: Returns the top token holders for a given contract.

    • Parameters: Contract ID, size of the result.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_toptokenholder",
        "params": ["0xContractId", 10],
        "id": 1
      }
    • Example Response:

      
      
      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* top token holders array */ ]
      }
  16. kaanch_recenttrxnbycontract

    • Description: Returns the recent transactions for a given contract.

    • Parameters: Contract address, size of the result.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_recenttrxnbycontract",
        "params": ["0xContractAddress", 10],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* recent transactions array */ ]
      }
  17. kaanch_tokenDetails

    • Description: Returns the details of a token.

    • Parameters: Contract address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_tokenDetails",
        "params": ["0xContractAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* token details object */ }
      }
  18. kaanch_alltokeninfo

    • Description: Returns the information of all tokens.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_alltokeninfo",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* all token info array */ ]
      }
  19. kaanch_verifiedToken

    • Description: Returns the verified tokens.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_verifiedToken",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* verified tokens array */ ]
      }
  20. kaanch_tokenSend

    • Description: Sends tokens.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_tokenSend",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  21. kaanch_TokenBalance

    • Description: Returns the token balance of an address.

    • Parameters: Wallet address, contract address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_TokenBalance",
        "params": ["0xWalletAddress", "0xContractAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0xTokenBalanceInHex"
      }
  22. kaanch_allBalance

    • Description: Returns the balance of all tokens for an address.

    • Parameters: Wallet address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_allBalance",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* all balances array */ ]
      }
  23. kaanch_Tokencheckblacklist

    • Description: Checks if an address is blacklisted for a token.

    • Parameters: Wallet address, contract address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_Tokencheckblacklist",
        "params": ["0xWalletAddress", "0xContractAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* blacklist status */ }
      }
  24. kaanch_tokenCreate

    • Description: Creates a new token.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_tokenCreate",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  25. kaanch_domainregister

    • Description: Registers a new domain.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_domainregister",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  26. kaanch_domainsetprimaryname

    • Description: Sets the primary name for a domain.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_domainsetprimaryname",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  27. kaanch_domainnameupdate

    • Description: Updates a domain name.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_domainnameupdate",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  28. kaanch_Stakingdata

    • Description: Returns staking data for an address.

    • Parameters: Wallet address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_Stakingdata",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* staking data object */ }
      }
  29. kaanch_info

    • Description: Returns information for a wallet address.

    • Parameters: Wallet address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_info",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* information object */ }
      }
  30. kaanch_Validatordetails

    • Description: Returns the details of a validator.

    • Parameters: Validator address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_Validatordetails",
        "params": ["0xValidatorAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* validator details object */ }
      }
  31. kaanch_Stakingdatafull

    • Description: Returns full staking data for an address.

    • Parameters: Wallet address.

    • Example Request:

      jsonCopy code{
        "jsonrpc": "2.0",
        "method": "kaanch_Stakingdatafull",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      jsonCopy code{
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* full staking data object */ }
      }
  32. kaanch_blockbyValidator

    • Description: Returns the block count by a validator.

    • Parameters: Validator address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_blockbyValidator",
        "params": ["0xValidatorAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* block count object */ }
      }
  33. kaanch_ValidatorEligible

    • Description: Checks if a validator is eligible.

    • Parameters: Validator address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_ValidatorEligible",
        "params": ["0xValidatorAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* eligibility status */ }
      }
  34. kaanch_ValidatorCreate

    • Description: Creates a new validator.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_ValidatorCreate",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  35. kaanch_stake

    • Description: Stakes tokens.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_stake",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  36. kaanch_checkstakingreward

    • Description: Checks staking rewards.

    • Parameters: User address, validator address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_checkstakingreward",
        "params": ["0xUserAddress", "0xValidatorAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* staking reward object */ }
      }
  37. kaanch_claimstakingreward

    • Description: Claims staking rewards.

    • Parameters: Raw transaction data, validator address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_claimstakingreward",
        "params": ["0xRawTransactionData", "0xValidatorAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  38. kaanch_unstake

    • Description: Unstakes tokens.

    • Parameters: Raw transaction data, validator address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_unstake",
        "params": ["0xRawTransactionData", "0xValidatorAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  39. kaanch_TokenbyOwner

    • Description: Returns the tokens owned by an address.

    • Parameters: Address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_TokenbyOwner",
        "params": ["0xAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* tokens owned array */ ]
      }
  40. kaanch_allstake

    • Description: Returns all stakes for an address.

    • Parameters: Address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_allstake",
        "params": ["0xAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* all stakes array */ ]
      }
  41. kaanch_contractmetadata

    • Description: Returns the metadata of a contract.

    • Parameters: Contract address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_contractmetadata",
        "params": ["0xContractAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* contract metadata object */ }
      }
  42. kaanch_tokendata

    • Description: Returns the data of a token.

    • Parameters: Contract address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_tokendata",
        "params": ["0xContractAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* token data object */ }
      }
  43. kaanch_Tokenaddblacklist

    • Description: Adds an address to the blacklist for a token.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_Tokenaddblacklist",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  44. kaanch_Tokenremoveblacklist

    • Description: Removes an address from the blacklist for a token.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_Tokenremoveblacklist",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  45. kaanch_Tokenpause

    • Description: Pauses a token.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_Tokenpause",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  46. kaanch_Tokenunpause

    • Description: Unpauses a token.

    • Parameters: Raw transaction data.

    • Example Request:

      jsonCopy code{
        "jsonrpc": "2.0",
        "method": "kaanch_Tokenunpause",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      jsonCopy code{
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  47. kaanch_tokenOwnershipTransfer

    • Description: Transfers the ownership of a token.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_tokenOwnershipTransfer",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  48. kaanch_tokenmint

    • Description: Mints new tokens.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_tokenmint",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  49. kaanch_tokenburn

    • Description: Burns tokens.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_tokenburn",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  50. kaanch_validatorbyowner

    • Description: Returns the validator details by owner address.

    • Parameters: Owner address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_validatorbyowner",
        "params": ["0xOwnerAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* validator details object */ }
      }
  51. kaanch_updateValidator

    • Description: Updates a validator.

    • Parameters: Raw transaction data.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_updateValidator",
        "params": ["0xRawTransactionData"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  52. kaanch_checkbridge

    • Description: Checks the bridge status for an address.

    • Parameters: Wallet address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "kaanch_checkbridge",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* bridge status object */ }
      }
  53. exchange_cancelorder

    • Description: Cancels an order on the exchange.

    • Parameters: Order ID.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_cancelorder",
        "params": ["orderID"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  54. exchange_createorder

    • Description: Creates a new order on the exchange.

    • Parameters: Order object (details like asset pair, price, quantity, etc.).

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_createorder",
        "params": [{ /* order details */ }],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  55. exchange_balance

    • Description: Returns the balance of a user on the exchange.

    • Parameters: Wallet address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_balance",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* balance object */ }
      }
  56. exchange_allopenorder

    • Description: Returns all open orders on the exchange.

    • Parameters: None.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_allopenorder",
        "params": [],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* open orders array */ ]
      }
  57. exchange_tradebyassetpair

    • Description: Returns trades for a given asset pair.

    • Parameters: Asset pair (e.g., ETH/USD).

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_tradebyassetpair",
        "params": ["ETH/USD"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* trades array */ ]
      }
  58. exchange_balanceclaim

    • Description: Claims the balance for a user on the exchange.

    • Parameters: Wallet address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_balanceclaim",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": { /* result object */ }
      }
  59. exchange_usertradebyassetpair

    • Description: Returns trades for a user by asset pair.

    • Parameters: Wallet address, asset pair (e.g., ETH/USD).

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_usertradebyassetpair",
        "params": ["0xWalletAddress", "ETH/USD"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* user trades array */ ]
      }
  60. exchange_usertrade

    • Description: Returns trades for a user.

    • Parameters: Wallet address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_usertrade",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* user trades array */ ]
      }
  61. exchange_userallopenorder

    • Description: Returns all open orders for a user.

    • Parameters: Wallet address.

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_userallopenorder",
        "params": ["0xWalletAddress"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* user open orders array */ ]
      }
  62. exchange_useropenorderbyassetPair

    • Description: Returns open orders for a user by asset pair.

    • Parameters: Wallet address, asset pair (e.g., ETH/USD).

    • Example Request:

      {
        "jsonrpc": "2.0",
        "method": "exchange_useropenorderbyassetPair",
        "params": ["0xWalletAddress", "ETH/USD"],
        "id": 1
      }
    • Example Response:

      {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [ /* user open orders array */ ]
      }

Last updated