# Transaction Operations

### Make a payment and get the results

```rust
use onemoney_protocol::PaymentPayload;

// Send a payment
let payment = PaymentPayload {
    chain_id: 1212101,
    nonce: 2,
    recipient: recipient_address,
    value: TokenAmount::from(500000000000000000u64), // 0.5 tokens
    token: token_address,
};

let result = client.send_payment(payment, private_key).await?;
println!("Payment sent: {}", result.hash);
```

### Get the transaction details

```rust
// Get transaction details
let tx = client.get_transaction_by_hash(&result.hash).await?;
println!("Transaction status: {:?}", tx.status);

```

### Poll for Confirmation

<pre class="language-rust"><code class="lang-rust"><strong>// Wait for confirmation
</strong>let confirmed_tx = client.wait_for_transaction(
    &#x26;result.transaction_hash,
    30, // max attempts
    Duration::from_secs(2) // polling interval
).await?;
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.1moneynetwork.com/integrations/sdks/rust/methods/transaction-operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
