Class BlockchainAccountController

java.lang.Object
app.keyconnect.server.controllers.BlockchainAccountController

@RestController
public class BlockchainAccountController
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    BlockchainAccountController​(BlockchainGatewayFactory blockchainGatewayFactory)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<BlockchainAccountInfo> getBlockchainAccountInfo​(java.lang.String chainId, java.lang.String accountId, java.lang.String network)  
    org.springframework.http.ResponseEntity<BlockchainAccountPayments> getPayments​(java.lang.String chainId, java.lang.String accountId, java.lang.String network, int limit, java.lang.String cursor)  
    org.springframework.http.ResponseEntity<BlockchainAccountTransactions> getTransactions​(java.lang.String chainId, java.lang.String accountId, java.lang.String network, int limit, java.lang.String cursor)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlockchainAccountController

      @Autowired public BlockchainAccountController​(BlockchainGatewayFactory blockchainGatewayFactory)
  • Method Details

    • getBlockchainAccountInfo

      @GetMapping(path="/v1/blockchains/{chainId}/accounts/{accountId}", produces="application/json") public org.springframework.http.ResponseEntity<BlockchainAccountInfo> getBlockchainAccountInfo​(@PathVariable("chainId") java.lang.String chainId, @PathVariable("accountId") java.lang.String accountId, @RequestParam(value="network",required=false,defaultValue="mainnet") java.lang.String network) throws UnknownNetworkException
      Throws:
      UnknownNetworkException
    • getTransactions

      @GetMapping(path="/v1/blockchains/{chainId}/accounts/{accountId}/transactions", produces="application/json") public org.springframework.http.ResponseEntity<BlockchainAccountTransactions> getTransactions​(@PathVariable("chainId") java.lang.String chainId, @PathVariable("accountId") java.lang.String accountId, @RequestParam(value="network",required=false,defaultValue="mainnet") java.lang.String network, @RequestParam(value="limit",required=false,defaultValue="10") int limit, @RequestParam(value="cursor",required=false) java.lang.String cursor) throws UnknownNetworkException
      Throws:
      UnknownNetworkException
    • getPayments

      @GetMapping(path="/v1/blockchains/{chainId}/accounts/{accountId}/payments", produces="application/json") public org.springframework.http.ResponseEntity<BlockchainAccountPayments> getPayments​(@PathVariable("chainId") java.lang.String chainId, @PathVariable("accountId") java.lang.String accountId, @RequestParam(value="network",required=false,defaultValue="mainnet") java.lang.String network, @RequestParam(value="limit",required=false,defaultValue="10") int limit, @RequestParam(value="cursor",required=false) java.lang.String cursor) throws UnknownNetworkException
      Throws:
      UnknownNetworkException