pub trait DAppConnectionsApi: Send + Sync {
// Required methods
fn create<'life0, 'async_trait>(
&'life0 self,
params: CreateParams,
) -> Pin<Box<dyn Future<Output = Result<CreateConnectionResponse, Error<CreateError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get<'life0, 'async_trait>(
&'life0 self,
params: GetParams,
) -> Pin<Box<dyn Future<Output = Result<GetConnectionsResponse, Error<GetError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove<'life0, 'async_trait>(
&'life0 self,
params: RemoveParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn submit<'life0, 'async_trait>(
&'life0 self,
params: SubmitParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<SubmitError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn create<'life0, 'async_trait>(
&'life0 self,
params: CreateParams,
) -> Pin<Box<dyn Future<Output = Result<CreateConnectionResponse, Error<CreateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
params: CreateParams,
) -> Pin<Box<dyn Future<Output = Result<CreateConnectionResponse, Error<CreateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /connections/wc
Initiate a new Web3 connection. * Note: After this succeeds, make a request to PUT /v1/connections/wc/{id}
(below) to approve or reject the new Web3 connection. Learn more about Fireblocks Wallet Link in the following guide. Endpoint Permission: Admin, Non-Signing Admin.
Sourcefn get<'life0, 'async_trait>(
&'life0 self,
params: GetParams,
) -> Pin<Box<dyn Future<Output = Result<GetConnectionsResponse, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
params: GetParams,
) -> Pin<Box<dyn Future<Output = Result<GetConnectionsResponse, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /connections
List all open Web3 connections. Endpoint Permission: Admin, Non-Signing Admin.
Sourcefn remove<'life0, 'async_trait>(
&'life0 self,
params: RemoveParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove<'life0, 'async_trait>(
&'life0 self,
params: RemoveParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
DELETE /connections/wc/{id}
Remove an existing Web3 connection. Endpoint Permission: Admin, Non-Signing Admin.
Sourcefn submit<'life0, 'async_trait>(
&'life0 self,
params: SubmitParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<SubmitError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn submit<'life0, 'async_trait>(
&'life0 self,
params: SubmitParams,
) -> Pin<Box<dyn Future<Output = Result<(), Error<SubmitError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
PUT /connections/wc/{id}
Submit a response to approve or reject an initiated Web3 connection.
- Note: This call is used to complete your
POST /v1/connections/wc/
request. After this succeeds, your new Web3 connection is created and functioning. Endpoint Permission: Admin, Non-Signing Admin.