circlefin / circle-nodejs-sdk Goto Github PK
View Code? Open in Web Editor NEWNode.js SDK for Circle API
License: Apache License 2.0
Node.js SDK for Circle API
License: Apache License 2.0
Is there any reason why we need 2 API calls to get the addresses of a wallet? Why can't the getWallet operation response come with an array of Addresses included?
ignore
The network enum Chain
needs to be extended to support Arbitrum network
I was talking with a developer in the Build on Circle community, and we found a bug in the API type definitions.
GetPaymentResponseData
is defined as never
because of conflicting type
attributes in a type intersection. Since these types are autogenerated by OpenAPI, it looks like it's probably an error in definitions.
export interface CryptoPayment {
// …
type: CryptoPaymentTypeEnum; // "payment" | "refund"
// …
And GetPaymentReponseData
is defined as an intersection with a specific type
that conflicts with that union:
export type GetPaymentResponseData =
| ({ type: "Crypto Payment" } & CryptoPayment)
| ({ type: "Fiat Payment" } & FiatPaymentPolymorphic);
This resolves to never
because "Crypto Payment" & ("payment" | "refund")
cannot be reconciled, which (downstream) results in GetPaymentResponse
resolving to { data: undefined }
in all cases.
Hello - can you please advice where I can find SDK doc? Is it available online or need to use the yarn gen-sdk <sdk-version>
? If the later, we were able to execute it but not sure how to access/view the generated doc - please kindly advice.
Thank you for creating this node library, super helpful to access to the Circle APIs.
Regards,
Right
Will merchants functionality be included in the SDK?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.