forge sdk for java development. For Forge-related setup, please checkout Forge
A detailed reference manual for forge-java-sdk can be found here.
if you are using gradle ,you have to add url to your repositories
and java version must >= 8.
First get your Forge running on local with Forge CLI. Or you know another's node config info.
Find the config your forge is using by
forge ps, find forge section, and get endpoint.
Create a SpringBoot gradle project. and ZX forge-java-sdk to it's dependencies.
when you want to connect with forge node.
you have to declare your account like sign up your account on chain.
this interface is a gRPC stream
wait some seconds, check your account balance .
create another wallet (suppose: Bob) as step 2.
if it works, response will return a hash string. you can query this hash use forgeSDK,or query it in forgeWeb. After this tx confirmed, check Alice and Bob 's accounts to confirm if this transaction successfully.
What MultiSig actually do
create asset: response is send transaction response and address is asset address, if transaction send successfully
common consume asset: if asset creator sell asset to others ,and others want to consume asset
child account consume asset: if application want to others to check asset.
Java user can use kotlin object like below:
and use kotlin extention like below:
🎉 Congratulations! You have finished the tutorial! Now you should have a general sense about how Forge works. Now continue to explore ! simple demo project