Sia后台进程 为所有的模块功能提供了API接口。每个模块的API接口帮助文档均可在 Sia GitHub repository找到。
所有的Siad API调用均返回JSON字符串或没有内容。
在使用API接口时,一些需要记住的重要内容包括:
curl -A “Sia-Agent” “localhost:9980/wallet/transactions?startheight=1&endheight=250”
curl -A “Sia-Agent” –data “amount=123&destination=abcd” “localhost:9980/wallet/siacoins”