Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Transaction State (Status) RPC #720

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

markopoloparadox
Copy link
Contributor

@markopoloparadox markopoloparadox commented Feb 12, 2025

Script to test this feature:

#!/bin/bash

# Check if the transaction TX argument is provided
if [ -z "$1" ]; then
    echo "Usage: $0 <transaction_tx>"
    exit 1
fi

transaction_tx="$1"

curl -H "Content-Type: application/json" -d "{
  \"jsonrpc\": \"2.0\",
  \"method\": \"transaction_state\",
  \"params\": [\"$transaction_tx\"],
  \"id\": 0
}" http://127.0.0.1:9944
echo ""

@markopoloparadox markopoloparadox force-pushed the transaction-information-rpc branch from 6774b86 to b67faf6 Compare February 12, 2025 09:46
node/src/rpc.rs Outdated Show resolved Hide resolved
rpc/kate-rpc/src/lib.rs Show resolved Hide resolved
rpc/system-rpc/src/lib.rs Outdated Show resolved Hide resolved
runtime/src/apis.rs Show resolved Hide resolved
@markopoloparadox markopoloparadox force-pushed the transaction-information-rpc branch from 5ca8e15 to 6687a55 Compare February 19, 2025 10:50
@markopoloparadox markopoloparadox merged commit b46da3f into main Feb 19, 2025
16 checks passed
@markopoloparadox markopoloparadox deleted the transaction-information-rpc branch February 19, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants