From d8cac00f01a38d09f0bfa3b26ea6cf57d7c7c21a Mon Sep 17 00:00:00 2001 From: Marshall <36639405+mdr0id@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:23:28 -0800 Subject: [PATCH] Update lowlatencytxnsend.md Add base64 example --- docs/source/lowlatencytxnsend.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/source/lowlatencytxnsend.md b/docs/source/lowlatencytxnsend.md index 6b19ec8..f42241c 100644 --- a/docs/source/lowlatencytxnsend.md +++ b/docs/source/lowlatencytxnsend.md @@ -86,10 +86,10 @@ Additionally, this method always sets skip_preflight=true, which means the trans | Parameter | Type | Description | |-----------|--------|--------------------------------------------------------------------------------------------------| -| `params` | string | **REQUIRED**: First Transaction Signature embedded in the transaction, as base-58 or base-64 encoded string | +| `params` | string | **REQUIRED**: First Transaction Signature embedded in the transaction, as base-58(default) or base-64 encoded string | -##### Request Example +##### Request Example base58 ```bash curl https://mainnet.block-engine.jito.wtf/api/v1/transactions -X POST -H "Content-Type: application/json" -d ' @@ -102,6 +102,21 @@ curl https://mainnet.block-engine.jito.wtf/api/v1/transactions -X POST -H "Conte ] }' ``` +##### Request Example base64 +``` +curl https://mainnet.block-engine.jito.wtf/api/v1/transactions -X POST -H "Content-Type: application/json" -d ' +{ + "jsonrpc": "2.0", + "id": 1, + "method": "sendTransaction", + "params": [ + "4hXTCkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWWPSAZBZSHptvWRL3BjCvzUXRdKvHL2b7yGrRQcWyaqsaBCncVG7BFggS8w9snUts67BSh3EqKpXLUm5UMHfD7ZBe9GhARjbNQMLJ1QD3Spr6oMTBU6EhdB4RD8CP2xUxr2u3d6fos36PD98XS6oX8TQjLpsMwncs5DAMiD4nNnR8NBfyghGCWvCVifVwvA8B8TJxE1aiyiv2L429BCWfyzAme5sZW8rDb14NeCQHhZbtNqfXhcp2tAnaAT", + { + "encoding": "base64", + } + ] +}' +``` ##### Response