Package com.codename1.crypto.rpc


package com.codename1.crypto.rpc
Chain network clients: EvmRpc for Ethereum JSON-RPC, EsploraClient for the Bitcoin Esplora REST API and SolanaRpc for Solana JSON-RPC, all written against one RpcTransport. On the server that is WebRpcTransport, which sends through a WebClient and shares its connection pool. Calls block the handler's thread until the node answers.
  • Class
    Description
    A Bitcoin client for the Esplora REST API, which Blockstream and mempool.space run in public and anyone can self-host: unspent outputs, balances, fee estimates and broadcasting.
    An unspent output.
    An Ethereum JSON-RPC client, for any EVM chain: balances, nonces, fees, gas estimates, calls, broadcasting and receipts.
    JSON-RPC 2.0 over an RpcTransport: what Ethereum and Solana nodes speak.
    A failure the remote end reported: an HTTP status outside 2xx, or a JSON-RPC error object.
    The one HTTP exchange every chain client needs: send a body, read the reply.
    A Solana JSON-RPC client: balances, the recent blockhash a transaction needs, rent, token balances, sending and confirmation.