[][src]Crate stellar_federation

Stellar Federation

The stellar-federation crate provides functions to map Stellar addresses to more information about a user. For more information, see the official Stellar documentation and SEP-0002.

Example Usage

use stellar_federation::resolve_stellar_address;

let address = resolve_stellar_address("with-text-memo*ceccon.me").await?;
println!("Address = {:?}", address);

Structs

FederationResponse

Stellar federation response.

Enums

Error

Crate error type.

Functions

resolve_stellar_account_id

Resolves the account_id using the specified federation server.

resolve_stellar_address

Resolves a Stellar address, automatically discovering the federation server to use.

resolve_stellar_address_from_server

Resolves a Stellar address using the specified federation server.

resolve_stellar_forward

Resolves to the information to send a payment to a different network or institution.

resolve_stellar_transaction_id

Resolves the tx_id using the specified federation server.

stellar_account_id_request_url

Returns the url for a Stellar account id request.

stellar_address_request_url

Returns the url for a Stellar address federation request.

stellar_forward_request_url

Returns the url for a forward request.

stellar_transaction_id_request_url

Returns the url for a Stellar transaction id request.