blinq-sdk
v0.2.1
Published
SDK for all the things blinq
Maintainers
Readme
blinq-sdk
SDK to interact with blinq-aggregator
Installation
npm install @blinq/sdkUsage
import {
AggregatorClient,
type XploreRequest
} from "blinq-sdk";
const client = new AggregatorClient({
endpoint: "localhost:50051",
timeoutS: 10
});
const response = await client.aggregateCall({
inputToken: {
chainId: "8453",
address: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
},
outputToken: {
chainId: "10",
address: "0x0000000000000000000000000000000000000000"
},
amountIn: "10000",
amountOutMin: "0",
recipientAddress: "0x4D7a3035228eF49ED94Aaf53afe405036C33BE24",
exactOut: false,
generateDepositAddress: true,
senderAddress: "0x4D7a3035228eF49ED94Aaf53afe405036C33BE24",
slippageTolerancePercent: 0,
timeoutMs: 10000
});License
MIT
