open_payments/wallet_address
Types
The public details of a wallet address, as returned by get.
See https://openpayments.dev/apis/wallet-address-server/operations/get-wallet-address/
pub type WalletInfo {
WalletInfo(
id: String,
public_name: String,
asset_code: String,
asset_scale: Int,
auth_server: String,
resource_server: String,
)
}
Constructors
-
WalletInfo( id: String, public_name: String, asset_code: String, asset_scale: Int, auth_server: String, resource_server: String, )
Values
pub fn get(
address: String,
) -> Result(WalletInfo, error.OpenPaymentsError)
Fetches the public details of the wallet address, including the auth and resource server URLs needed for further requests. See https://openpayments.dev/apis/wallet-address-server/operations/get-wallet-address/
pub fn get_keys(
address: String,
) -> Result(List(types.Key), error.OpenPaymentsError)
Fetches the public keys (JWKS) registered on the wallet address, used to verify signatures made by its owner. See https://openpayments.dev/apis/wallet-address-server/operations/get-wallet-address-keys/