123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- package bitcoin
- type RpcError struct {
- Code int `json:"code"`
- Message string `json:"message"`
- }
- type RpcResult struct {
- Result string `json:"result"`
- Error RpcError `json:"error"`
- Id string `json:"id"`
- }
- type BlockInfo struct {
- Hash string
- Confirmations uint64
- Size uint64
- Height uint64
- Version uint64
- VersionHex string
- Merkleroot string
- Tx []string
- Time uint64
- Mediantime uint64
- Nonce uint64
- Bits string
- Difficulty float64
- Chainwork string
- Previousblockhash string
- Nextblockhash string
- }
- type BlockResult struct {
- Result BlockInfo `json:"result"`
- Error RpcError `json:"error"`
- Id string `json:"id"`
- }
- type Listtransactions struct {
- Account string `json:"account"`
- Address string `json:"address"`
- Category string `json:"category"`
- Amount float64 `json:"amount"`
- Vout uint64 `json:"vout"`
- Fee float64 `json:"fee":`
- Confirmations uint64 `json:"confirmations"`
- Blockhash string `json:"blockhash"`
- Blockindex uint64 `json:"blockindex"`
- Blocktime uint64 `json:"blocktime"`
- Txid string `json:"txid"`
- Time uint64 `json:"time"`
- Timereceived uint64 `json:"timereceived"`
- Abandoned bool `json:"abandoned"`
- Label string `json:"label"`
- Comment string `json:"comment"`
- To string `json:"to"`
- }
- type listtransactions struct {
- Transactions []Listtransactions `json: "transactions"`
- Lastblock string `json: "lastblock"`
- }
- type Listtransactionsresult struct {
- Result listtransactions `json:"result"`
- Error RpcError `json:"error"`
- Id string `json:"id"`
- }
- type BalanceResult struct {
- Result float64 `json:"result"`
- Error RpcError `json:"error"`
- Id string `json:"id"`
- }
- type Blockcountresult struct {
- Result uint64
- Error RpcError
- Id string
- }
- type Setfeeresult struct {
- Result bool
- Error RpcError
- Id string
- }
- type walletInfo struct {
- Walletversion uint64
- Balance float64
- Unconfirmed_balance float64
- Immature_balance float64
- Txcount uint64
- Keypoololdest uint64
- Keypoolsize uint64
- Unlocked_until uint64
- Paytxfee float64
- }
- type WalletinfoResult struct {
- Result walletInfo `json:"result"`
- Error RpcError `json:"error"`
- Id string `json:"id"`
- }
- type UnspentInfo struct {
- Txid string
- Vout uint64
- Address string
- Account string
- ScriptPubKey string
- Amount float64
- Confirmations uint64
- RedeemScript string
- Spendable bool
- Solvable bool
- }
- type RpcUnspentResult struct {
- Result []UnspentInfo `json:"result"`
- Error RpcError `json:"error"`
- Id string `json:"id"`
- }
|