xrpl-py icon indicating copy to clipboard operation
xrpl-py copied to clipboard

Allows specifying `api_version` as default instead of specifying `api_version` for each request

Open tequdev opened this issue 4 months ago • 1 comments

The following processes that are possible in xrpl.js should also be possible in xrpl-py.

import { Client } from 'xrpl'
const client = new Client('custom-api-v1-server')
client.apiVersion = 1

await client.connect() // api_version = 1

await client.getServerInfo()  // api_version = 1
await client.request({ comand: "server_info" }) // api_version = 1

tequdev avatar Oct 01 '24 07:10 tequdev