with Coinbase Developer Platform and Click & Sign?
Emit new event for each new wallet event. See the documentation
import { Coinbase, Wallet } from "@coinbase/coinbase-sdk";
export default defineComponent({
props: {
coinbase_developer_platform: {
type: "app",
app: "coinbase_developer_platform",
}
},
async run({ steps, $ }) {
const apiKeyName = this.coinbase_developer_platform.$auth.api_key_id;
const privateKey = this.coinbase_developer_platform.$auth.secret_key
Coinbase.configure({ apiKeyName: apiKeyName, privateKey: privateKey });
return Wallet.listWallets();
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
click_sign: {
type: "app",
app: "click_sign",
}
},
async run({steps, $}) {
const data = {
"request": `GET_CONFIG_LIST`,
"user": `${this.click_sign.$auth.username}`,
}
return await axios($, {
method: "post",
url: `https://api.lleida.net/cs/v1/get_config_list`,
headers: {
"authorization": `x-api-key ${this.click_sign.$auth.api_key}`,
},
data,
})
},
})