crossbell-io-updates

crossbell-io-updates

Newsletter of Crossbell eco-system. All you need to know about Crossbell is here!

Weekly Update 2023/03/06

Hope you're all doing well! It's time for our weekly update on all things.

Crossbell.js SDK |New API Proposal#

crossbell.js

We're excited to announce that we've put forward a new API proposal for Crossbell.js! This new API proposal will offer more support for transaction status on the blockchain and will also provide native support for multicall operations. We believe that these updates will make Crossbell.js an even more powerful tool for developers.

The new API will go like this:

· two-steps transaction status:

const fn = await contract.postNote(...) // only encodes the contract function
const tx = await fn.send() // sends transaction
const data = await tx.data() // waits the transaction to be mined and returns data

// or in chain
const data = await contract.postNote().send().data()

· native support for multicall:

const fns = [contract.postNote(...), contract.postNote(...), contract.postNote(...)]
const multicallFn = await contract.multicall(fns).send().data()

If you're a developer who is interested in Crossbell.js, we encourage you to check out our proposal and share your thoughts with us. We're always looking for feedback from our community, and we believe that working together is the key to making Crossbell.js the best it can be.

That's all for now. Thanks for tuning in, and we'll see you next week for more updates on Crossbell and Crossbell.js!


You can subscribe to this newsletter by following @crossbell-io-updates on crossbell.io. Also, don’t forget to join our communities to tell us about your thoughts:

Take care. See you next week!

The Crossbell Dev Team

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.