Skip to main content

IgnoreAssetOutPoint

IgnoreAssetOutPoint allows an asset issuer to mark a specific asset outpoint as ignored. An ignored outpoint will be included in the next universe supply commitment transaction that is published.

Source: universerpc/universe.proto

gRPC

rpc IgnoreAssetOutPoint (IgnoreAssetOutPointRequest) returns (IgnoreAssetOutPointResponse);

REST

HTTP MethodPath
POST /v1/taproot-assets/universe/supply/ignore

Code Samples

const fs = require('fs');
const grpc = require('@grpc/grpc-js');
const protoLoader = require('@grpc/proto-loader');

const GRPC_HOST = 'localhost:10029'
const MACAROON_PATH = 'TAPROOT-ASSETS_DIR/regtest/taproot-assets.macaroon'
const TLS_PATH = 'TAPROOT-ASSETS_DIR/tls.cert'

const loaderOptions = {
keepCase: true,
longs: String,
enums: String,
defaults: true,
oneofs: true,
};
const packageDefinition = protoLoader.loadSync('universerpc/universe.proto', loaderOptions);
const universerpc = grpc.loadPackageDefinition(packageDefinition).universerpc;
process.env.GRPC_SSL_CIPHER_SUITES = 'HIGH+ECDSA';
const tlsCert = fs.readFileSync(TLS_PATH);
const sslCreds = grpc.credentials.createSsl(tlsCert);
const macaroon = fs.readFileSync(MACAROON_PATH).toString('hex');
const macaroonCreds = grpc.credentials.createFromMetadataGenerator(function(args, callback) {
let metadata = new grpc.Metadata();
metadata.add('macaroon', macaroon);
callback(null, metadata);
});
let creds = grpc.credentials.combineChannelCredentials(sslCreds, macaroonCreds);
let client = new universerpc.Universe(GRPC_HOST, creds);
let request = {
asset_out_point: <AssetOutPoint>,
amount: <uint64>,
};
client.ignoreAssetOutPoint(request, function(err, response) {
console.log(response);
});
// Console output:
// {
// "leaf_key": <bytes>,
// "leaf": <MerkleSumNode>,
// }

Messages

universerpc.IgnoreAssetOutPointRequest

Source: universerpc/universe.proto

FieldgRPC TypeREST TypeREST Placement
asset_out_point
AssetOutPointobjectbody
amount
uint64stringbody

universerpc.IgnoreAssetOutPointResponse

Source: universerpc/universe.proto

FieldgRPC TypeREST Type
leaf_key
bytesstring
leaf
MerkleSumNodeobject

Nested Messages

taprpc.AssetOutPoint

FieldgRPC TypeREST Type
anchor_out_point
stringstring
asset_id
bytesstring
script_key
bytesstring

universerpc.MerkleSumNode

FieldgRPC TypeREST Type
root_hash
bytesstring
root_sum
int64string