Add a new darksidewallet gRPC to add a utxo that can be returned by the production GetAddressUtxos, for example: grpcurl -plaintext -d '{"address":"t1g1HQJuwDoStGrYYLj8VhLu1J5igd8TNXV","txid":"1zjB42Z7FtwRZOBNMlTubCgx9l3dsZSqXxmWpuZXJto=","script": "dqkU8saQsCVS4mNwcByoGCtfOaHFaCiIrA==","valueZat": "3010000","height": "686773"}' localhost:9067 cash.z.wallet.sdk.rpc.DarksideStreamer/AddAddressUtxo Then the following returns this entry: grpcurl -plaintext -d '{"startHeight":0,"maxEntries":2,"addresses":["t1g1HQJuwDoStGrYYLj8VhLu1J5igd8TNXV"]}' localhost:9067 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetAddressUtxos You can also clear the list of entries: grpcurl -plaintext localhost:9067 cash.z.wallet.sdk.rpc.DarksideStreamer/ClearAddressUtxo |
||
---|---|---|
.. | ||
compact_formats.pb.go | ||
compact_formats.proto | ||
darkside.pb.go | ||
darkside.proto | ||
darkside_grpc.pb.go | ||
generate.go | ||
service.pb.go | ||
service.proto | ||
service_grpc.pb.go | ||
walletrpc_test.go |