zombi
September 16, 2022, 1:45pm
1
I would like create offer by Chia RPC API,
but it is a some gap about Chia RPC API documentation.
In another site i found function create_offer_for_ids(agent, params)
( chia-agent/README.md at main · Chia-Mine/chia-agent · GitHub )
but i don’t know how to use it.
Maybe someone can show some example ?
params:
{
offer: Record<int, int>;
fee?: uint64;
validate_only?: bool;
driver_dict?: TDriverDict;
min_coin_amount?: uint64;
}
roybot
September 16, 2022, 9:48pm
2
Please use markdown for your code blocks: Basic Syntax | Markdown Guide
This might be useful for you: Chia RPC
1 Like
karlkim
September 17, 2022, 6:46am
3
To create an offer via Chia RPC, the json payload should look like this:
{
"offer": {
"1": -1000000000000,
"2": 1000
},
"fee": 50000000
}
Above is the offer of 1 XCH (1 trillion mojo) for 1 CAT. 1
and 2
are your wallet id
. For NFT, you can replace the wallet id
with the launcher id
instead.
2 Likes
Hi, is there any way to request nft?
chia just set the requested launcher_id as cat id…
ths!