Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,9 @@ const docTemplate = `{
"type": "string"
},
"amount": {
"type": "integer"
"type": "integer",
"format": "int64",
"example": 1000000
},
"assets": {},
"index": {
Expand Down
4 changes: 3 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@
"type": "string"
},
"amount": {
"type": "integer"
"type": "integer",
"format": "int64",
"example": 1000000
},
"assets": {},
"index": {
Expand Down
2 changes: 2 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ definitions:
address:
type: string
amount:
example: 1000000
format: int64
type: integer
assets: {}
index:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ require (
connectrpc.com/grpcreflect v1.3.0
github.com/blinklabs-io/adder v0.37.0
github.com/blinklabs-io/gouroboros v0.153.1
github.com/blinklabs-io/plutigo v0.0.22
github.com/blinklabs-io/tx-submit-api v0.20.10
github.com/gin-gonic/gin v1.11.0
github.com/gorilla/websocket v1.5.3
Expand All @@ -30,7 +31,6 @@ require (
github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtime v0.0.0-20251001021608-1fe7b43fc4d6 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.20.0 // indirect
github.com/blinklabs-io/plutigo v0.0.22 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.6 // indirect
github.com/btcsuite/btcd/btcutil v1.1.6 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect
Expand Down
10 changes: 5 additions & 5 deletions internal/api/localstatequery.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,11 @@ type responseLocalStateQuerySearchUTxOsByAsset struct {
}

type utxoItem struct {
TxHash string `json:"tx_hash"`
Index uint32 `json:"index"`
Address string `json:"address"`
Amount uint64 `json:"amount"`
Assets interface{} `json:"assets,omitempty"`
TxHash string `json:"tx_hash"`
Index uint32 `json:"index"`
Address string `json:"address"`
Amount uint64 `json:"amount" format:"int64" example:"1000000"`
Assets any `json:"assets,omitempty"`
}

// handleLocalStateQuerySearchUTxOsByAsset godoc
Expand Down
Loading