goplussecurity / goplus-sdk-go Goto Github PK
View Code? Open in Web Editor NEWThe official GoPlus Security Go SDK.
Home Page: https://gopluslabs.io
License: Apache License 2.0
The official GoPlus Security Go SDK.
Home Page: https://gopluslabs.io
License: Apache License 2.0
LockedDetail type shoud be []any
file: https://github.com/GoPlusSecurity/goplus-sdk-go/blob/main/pkg/gen/models/response_wrapper_token_security.go#L580
https://gopluslabs.io/token-security/1/0xB22C05CeDbF879a661fcc566B5a759d005Cf7b4C
response:
"locked_detail":[ { "amount":"30000000", "end_time":"2023-07-01T05:00:00+00:00", "opt_time":"" }, { "amount":"30000000", "end_time":"2023-08-01T05:00:00+00:00", "opt_time":"" } ]
There is no gas_abuse
field in the token security API response ResponseWrapperTokenSecurityResultAnon
API: Get token's security and risk data
GET https://api.gopluslabs.io/api/v1/token_security/{chain_id}
desc: sometime the lp_holders.balance type in response not match sdk type
example:
params: chain_id = 1
and address=0x1c388bEef4178493F1EFC28962eEA02eE0DD6837
in the response, lp_holders[0].balance = 0
, whitch type is int, but ResponseWrapperTokenSecurityResultAnonLpHoldersItems0.Balance
field type is string in this sdk,
var ret models.ResponseWrapperTokenSecurityResultAnon
security = token.NewTokenSecurity(nil)
ret, err := security.Run(chainId, []string{tokenAddr})
cannot unmarshal number into Go struct field ResponseWrapperTokenSecurityResultAnonHoldersItems0.result.holders.percent of type string
I guess that the tag `json:",string" should be used to
// It describes the percentage of tokens held by this holder (Notice:About "percent": 1 means 100% here.)
Percent string `json:"percent,string,omitempty"`
of ResponseWrapperTokenSecurityResultAnonHoldersItems0 struct,
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.