Home

swap_simSwapAlphaForTao

POST
https://tao.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Simulates swapping Alpha tokens to Tao and returns the resulting output breakdown.

Body

application/json
jsonrpcstringrequired

JSON-RPC protocol version. Must be "2.0".

methodstringswap_simSwapAlphaForTaorequired

The RPC method to invoke.

paramsArray<integer>required

Array containing two integer elements: the pool ID and the amount of Alpha to swap (in RAO or smallest unit).

idintegerrequired

Request identifier.

Response

200OK

Successful response with the simulation result.