Limit message encoding to base-64 (#19468)

This commit is contained in:
Jack May
2021-08-29 19:53:37 -07:00
committed by GitHub
parent 84db04ce6c
commit f81bfc8462
3 changed files with 4 additions and 12 deletions

View File

@ -1149,8 +1149,7 @@ Get the fee the network will charge for a particular Message
#### Parameters:
- `blockhash: <string>` - The blockhash of this block, as base-58 encoded string
- `message: <string>` - Encoded Message
- `encoding: <string>` - (optional) Encoding used for the message data. Either `"base58"` (*slow*, **DEPRECATED**), or `"base64"`. (default: `"base58"`).
- `message: <string>` - Base-64 encoded Message
- `<object>` - (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment) (used for retrieving blockhash)
#### Results:
@ -1168,7 +1167,6 @@ curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
"method":"getFeeForMessage",
"params":[
"FxVKTksYShgKjnFG3RQUEo2AEesDb4ZHGY3NGJ7KHd7F","AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAA",
"base64",
{
"commitment":"processed"
}