Struct flow_sdk::prelude::CreateAccountWeightedTransaction [−][src]
pub struct CreateAccountWeightedTransaction<'a, PubKey> {
pub public_keys: &'a [(PubKey, UFix64)],
}
Expand description
A transaction to create an account with weighed keys.
Fields
public_keys: &'a [(PubKey, UFix64)]
The public keys and their weight of the new account.
Implementations
pub fn to_header<S: FlowSigner<PublicKey = PubKey>, H: FlowHasher>(
&self,
signer: &S
) -> TransactionHeader<[Box<[u8]>; 1]>
pub fn to_header<S: FlowSigner<PublicKey = PubKey>, H: FlowHasher>(
&self,
signer: &S
) -> TransactionHeader<[Box<[u8]>; 1]>
Turns this transaction template into a TransactionHeader
.
Requires the signer to serialize the public keys, and the hasher type argument to obtain the hashing algorithm.
Trait Implementations
Auto Trait Implementations
impl<'a, PubKey> RefUnwindSafe for CreateAccountWeightedTransaction<'a, PubKey> where
PubKey: RefUnwindSafe,
impl<'a, PubKey> Send for CreateAccountWeightedTransaction<'a, PubKey> where
PubKey: Sync,
impl<'a, PubKey> Sync for CreateAccountWeightedTransaction<'a, PubKey> where
PubKey: Sync,
impl<'a, PubKey> Unpin for CreateAccountWeightedTransaction<'a, PubKey>
impl<'a, PubKey> UnwindSafe for CreateAccountWeightedTransaction<'a, PubKey> where
PubKey: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more