pub async fn do_txn(
    ros: &RosettaApiHandle,
    sender_keypair: Arc<EdKeypair>,
    operation: Operation,
    accept_suggested_fee: bool,
    ingress_end: Option<u64>,
    created_at_time: Option<u64>,
) -> Result<
    (
        TransactionIdentifier,
        TransactionResults,
        Tokens, // charged fee
    ),
    RosettaError,
> {
    do_multiple_txn(
        ros,
        &[RequestInfo {
            request: Request::Transfer(operation),
            sender_keypair,
        }],
        accept_suggested_fee,
        ingress_end,
        created_at_time,
    )
    .await
}
// If accept_suggested_fee is false, then Transfer needs to contain a correct
// fee. Otherwise the fee value will be ignored and set to whatever ledger
// canister wants. In such case we don't do checks if the transaction
// created matches the one requested.
If accept_suggested_fee is false, then Transfer needs to contain a correct
fee. Otherwise the fee value will be ignored and set to whatever ledger
canister wants. In such case we don't do checks if the transaction
created matches the one requested.
If accept_suggested_fee is false then Transfer needs to contain a correct fee . Otherwise the fee value will be ignored and set to whatever ledger canister wants . In such case we don ' t do checks if the transaction created matches the one requested .
pub async fn do_txn(
    ros: &RosettaApiHandle,
    sender_keypair: Arc<EdKeypair>,
    operation: Operation,
    accept_suggested_fee: bool,
    ingress_end: Option<u64>,
    created_at_time: Option<u64>,
) -> Result<
    (
        TransactionIdentifier,
        TransactionResults,
        Tokens, // charged fee
    ),
    RosettaError,
> {
    do_multiple_txn(
        ros,
        &[RequestInfo {
            request: Request::Transfer(operation),
            sender_keypair,
        }],
        accept_suggested_fee,
        ingress_end,
        created_at_time,
    )
    .await
}
pub async fn do_txn ( ros : & RosettaApiHandle , sender_keypair : Arc < EdKeypair > , operation : Operation , accept_suggested_fee : bool , ingress_end : Option < u64 > , created_at_time : Option < u64 > , ) -> Result < ( TransactionIdentifier , TransactionResults , Tokens , // charged fee ) , RosettaError , > { do_multiple_txn ( ros , & [ RequestInfo { request : Request :: Transfer ( operation ) , sender_keypair , } ] , accept_suggested_fee , ingress_end , created_at_time , ) . await }
If accept_suggested_fee is false, then Transfer needs to contain a correct
fee.
If accept_suggested_fee is false then Transfer needs to contain a correct fee .
ros
&RosettaApiHandle
sender_keypair
Arc<EdKeypair>
operation
Operation
accept_suggested_fee
bool
ingress_end
Option<u64>
created_at_time
Option<u64>
ros
&RosettaApiHandle
sender_keypair
Arc<EdKeypair>
operation
Operation
accept_suggested_fee
bool
ingress_end
Option<u64>
created_at_time
Option<u64>