coinbase / coinbase-sdk-nodejs

Other
74 stars 28 forks source link

Support webhook signature header #199

Closed chaoyaji-cb closed 2 months ago

chaoyaji-cb commented 2 months ago

What changed? Why?

Qualified Impact

testing

> const w4 = await Webhook.create('base-mainnet', 'https://bug_bash.net', 'erc20_transfer', [{ contract_address: '0x24d6C74D811cfDe65995Ed26FD08Af445f8aaB06' }], 'node_js_testing')
undefined
> w4.toString()
`Webhook { id: '66cf98862b3574304368e6b9', network_id: 'base-mainnet', event_type: 'erc20_transfer', event_filter: [{"contract_address":"0x24d6C74D811cfDe65995Ed26FD08Af445f8aaB06"}], notification_uri: 'https://bug_bash.net', signature_header: 'node_js_testing' }`
image