pub struct TransferTransactionRequest {
pub amount: u64,
pub token: String,
pub source: String,
pub destination: String,
pub signer_key: Option<String>,
}Expand description
DEPRECATED: Use getPaymentInstruction instead for fee payment flows.
This endpoint will be removed in a future version.
Request payload for creating a simple token or SOL transfer transaction. This endpoint constructs an unsigned transfer where Kora acts as the fee payer, but the user must still sign the transaction before it can be submitted.
Fields§
§amount: u64Amount to transfer (in the token’s smallest unit, e.g. lamports for SOL)
token: StringToken mint address to transfer (use native SOL address for SOL transfers)
source: StringThe source wallet address that will send the tokens
destination: StringThe destination wallet address that will receive the tokens
signer_key: Option<String>Optional public key of the signer to ensure consistency
Trait Implementations§
Source§impl Debug for TransferTransactionRequest
impl Debug for TransferTransactionRequest
Source§impl<'de> Deserialize<'de> for TransferTransactionRequest
impl<'de> Deserialize<'de> for TransferTransactionRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransferTransactionRequest
impl RefUnwindSafe for TransferTransactionRequest
impl Send for TransferTransactionRequest
impl Sync for TransferTransactionRequest
impl Unpin for TransferTransactionRequest
impl UnsafeUnpin for TransferTransactionRequest
impl UnwindSafe for TransferTransactionRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.