Skip to content

Commit 226c6c2

Browse files
Address tomiir's PR feedback: clarify address filtering, remove network redundancy note, fix txid format
- Update stx_getAddresses filtering note to mention address prefixes (SP for mainnet, ST for testnet) - Remove redundancy note about network parameter since chainId may be optional - Fix txid format in response examples by removing 0x prefix (Stacks txids are not hex encoded) Co-Authored-By: [email protected] <[email protected]>
1 parent 601ca42 commit 226c6c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

advanced/multichain/rpc-reference/stacks-rpc.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Retrieve active account addresses; primarily Stacks-focused.
4242

4343
**Notes:**
4444
- Use this first to select the wallet's active address.
45-
- Filter on `symbol: "STX"`.
45+
- Filter on `symbol: "STX"` or by address prefix (SP for mainnet, ST for testnet).
4646

4747
## Stacks Methods
4848

@@ -75,7 +75,7 @@ Transfer STX.
7575
| `recipient` | Required | `string` | Stacks address |
7676
| `amount` | Required | `string` | micro-STX (uSTX) |
7777
| `memo` | Optional | `string` | Memo string to be included with the transfer transaction |
78-
| `network` | Optional | `string` | "mainnet" \| "testnet" \| "devnet" (note: redundant since chainId is provided) |
78+
| `network` | Optional | `string` | "mainnet" \| "testnet" \| "devnet" |
7979

8080
#### Response
8181

@@ -84,7 +84,7 @@ Transfer STX.
8484
"jsonrpc": "2.0",
8585
"id": 1,
8686
"result": {
87-
"txid": "0x…",
87+
"txid": "1234567890abcdef1234567890abcdef12345678",
8888
"transaction": "0x…"
8989
}
9090
}
@@ -126,7 +126,7 @@ Sign a Stacks transaction. Optional broadcast.
126126
"result": {
127127
"signature": "0x…",
128128
"transaction": "0x…",
129-
"txid": "0x…"
129+
"txid": "1234567890abcdef1234567890abcdef12345678"
130130
}
131131
}
132132
```

0 commit comments

Comments
 (0)