@cosmosapp/pay_sdkDéfinitionsServeur

PublicKeyManager

The shared public API key — client.publicKey. It is what an open-source wallet embeds to reach the few routes anonymous callers may use; the route that serves…

The shared public API key — client.publicKey. It is what an open-source wallet embeds to reach the few routes anonymous callers may use; the route that serves it takes no key at all. Mostly useful to tooling that ships such a wallet; a server with its own key has no need for it.

Constructor

PublicKeyManager

constructor(client: Client)

Parameters

Properties

client

readonly client: Client

Type Client

Methods

fetch()

The public key for an environment (dev → testnet, prod → mainnet).

fetch(env?: 'dev' | 'prod'): Promise<PublicKeyData>

Parameters

  • env (optional): 'dev' | 'prod'

Returns Promise<PublicKeyData>

Sur cette page