calculating checksum is slow
We're using reed-solomon.
diff --git a/api/account/index.html b/api/account/index.html index b415c172..35b67f6f 100644 --- a/api/account/index.html +++ b/api/account/index.html @@ -4,8 +4,8 @@Account
getAccount Query
diff --git a/api/api-overview/index.html b/api/api-overview/index.html index aa933837..fe1037a3 100644 --- a/api/api-overview/index.html +++ b/api/api-overview/index.html @@ -4,8 +4,8 @@Overview
The SDK contains three APIs:
diff --git a/api/bucket/index.html b/api/bucket/index.html index ca89913c..0867e167 100644 --- a/api/bucket/index.html +++ b/api/bucket/index.html @@ -4,8 +4,8 @@Bucket
createBucket Storage Provider Tx
diff --git a/api/crosschain/index.html b/api/crosschain/index.html index 2c7f3c3a..2cfa83f4 100644 --- a/api/crosschain/index.html +++ b/api/crosschain/index.html @@ -4,8 +4,8 @@Crosschain
getChannelSendSequence Query
diff --git a/api/feegrant/index.html b/api/feegrant/index.html index 55a36dda..495d4d0f 100644 --- a/api/feegrant/index.html +++ b/api/feegrant/index.html @@ -4,8 +4,8 @@Feegrant
grantAllowance Tx
diff --git a/api/gashub/index.html b/api/gashub/index.html index 320a67b3..321e6736 100644 --- a/api/gashub/index.html +++ b/api/gashub/index.html @@ -4,8 +4,8 @@Gashub
getMsgGasParams Query
diff --git a/api/group/index.html b/api/group/index.html index 27ce7749..ccc0af22 100644 --- a/api/group/index.html +++ b/api/group/index.html @@ -4,8 +4,8 @@Group
createGroup Tx
diff --git a/api/object/index.html b/api/object/index.html index d400bf9f..64b3de37 100644 --- a/api/object/index.html +++ b/api/object/index.html @@ -4,8 +4,8 @@Object
cancelCreateObject Tx
diff --git a/api/payment/index.html b/api/payment/index.html index 8df7e6b3..e0d3480f 100644 --- a/api/payment/index.html +++ b/api/payment/index.html @@ -4,8 +4,8 @@Payment
getStreamRecord Query
diff --git a/api/sp/index.html b/api/sp/index.html index b622d431..5adeb12f 100644 --- a/api/sp/index.html +++ b/api/sp/index.html @@ -4,8 +4,8 @@Sp
getStorageProviders Query
diff --git a/api/virtual-group/index.html b/api/virtual-group/index.html index c3887acf..34e0e2b0 100644 --- a/api/virtual-group/index.html +++ b/api/virtual-group/index.html @@ -4,8 +4,8 @@VirtualGroup
getGlobalVirtualGroup Query
diff --git a/assets/js/209101c8.0e6935b6.js b/assets/js/209101c8.0e6935b6.js deleted file mode 100644 index 8eba798e..00000000 --- a/assets/js/209101c8.0e6935b6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkgreenfield_js_sdk_docs=self.webpackChunkgreenfield_js_sdk_docs||[]).push([[888],{8682:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>s,metadata:()=>c,toc:()=>o});var i=t(5250),r=t(1340);const s={id:"greenfield-client",title:"Greenfield Client",sidebar_position:1},d="Create Greenfield Client",c={id:"client/greenfield-client",title:"Greenfield Client",description:"| params | description |",source:"@site/docs/client/greenfield.mdx",sourceDirName:"client",slug:"/client/greenfield-client",permalink:"/greenfield-js-sdk/client/greenfield-client",draft:!1,unlisted:!1,editUrl:"https://github.com/bnb-chain/greenfield-js-sdk/tree/main/doc-site/docs/client/greenfield.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{id:"greenfield-client",title:"Greenfield Client",sidebar_position:1},sidebar:"GettingStartSidebar",previous:{title:"Client",permalink:"/greenfield-js-sdk/category/client"},next:{title:"Tx Client",permalink:"/greenfield-js-sdk/client/tx-client"}},l={},o=[];function a(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"create-greenfield-client",children:"Create Greenfield Client"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"params"}),(0,i.jsx)(n.th,{children:"description"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"GRPC_URL"}),(0,i.jsx)(n.td,{children:"Greenfield grpc url"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:"GREEN_CHAIN_ID"}),(0,i.jsx)(n.td,{children:"Greenfield chain id"})]})]})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-js",children:"import { Client } from '@bnb-chain/greenfield-js-sdk';\n\n// Node.js\nconst client = Client.create(GRPC_URL, GREEN_CHAIN_ID);\n\n// Browser\nconst client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID), {\n zkCryptoUrl:\n 'https://unpkg.com/@bnb-chain/greenfield-zk-crypto@0.0.3/dist/node/zk-crypto.wasm',\n});\n"})}),"\n",(0,i.jsx)(n.admonition,{type:"tip",children:(0,i.jsx)(n.p,{children:"The browser needs to load wasm manually."})}),"\n",(0,i.jsx)(n.p,{children:"The JS SDK consists of two parts:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["Chain: ",(0,i.jsx)(n.a,{href:"https://docs.bnbchain.org/greenfield-docs/docs/api/blockchain-rest",children:"https://docs.bnbchain.org/greenfield-docs/docs/api/blockchain-rest"})]}),"\n",(0,i.jsxs)(n.li,{children:["Storage Provider: ",(0,i.jsx)(n.a,{href:"https://docs.bnbchain.org/greenfield-docs/docs/api/storage-provider-rest",children:"https://docs.bnbchain.org/greenfield-docs/docs/api/storage-provider-rest"})]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(a,{...e})}):a(e)}},1340:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>d});var i=t(79);const r={},s=i.createContext(r);function d(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/209101c8.da226055.js b/assets/js/209101c8.da226055.js new file mode 100644 index 00000000..f6f80294 --- /dev/null +++ b/assets/js/209101c8.da226055.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkgreenfield_js_sdk_docs=self.webpackChunkgreenfield_js_sdk_docs||[]).push([[888],{8682:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>f,frontMatter:()=>s,metadata:()=>c,toc:()=>u});var r=n(5250),a=n(1340),l=n(3880),i=n(8119);const s={id:"greenfield-client",title:"Greenfield Client",sidebar_position:1},o="Create Greenfield Client",c={id:"client/greenfield-client",title:"Greenfield Client",description:"| params | description |",source:"@site/docs/client/greenfield.mdx",sourceDirName:"client",slug:"/client/greenfield-client",permalink:"/greenfield-js-sdk/client/greenfield-client",draft:!1,unlisted:!1,editUrl:"https://github.com/bnb-chain/greenfield-js-sdk/tree/main/doc-site/docs/client/greenfield.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{id:"greenfield-client",title:"Greenfield Client",sidebar_position:1},sidebar:"GettingStartSidebar",previous:{title:"Client",permalink:"/greenfield-js-sdk/category/client"},next:{title:"Tx Client",permalink:"/greenfield-js-sdk/client/tx-client"}},d={},u=[];function h(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"create-greenfield-client",children:"Create Greenfield Client"}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"params"}),(0,r.jsx)(t.th,{children:"description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"GRPC_URL"}),(0,r.jsx)(t.td,{children:"Greenfield grpc url"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"GREEN_CHAIN_ID"}),(0,r.jsx)(t.td,{children:"Greenfield chain id"})]})]})]}),"\n",(0,r.jsxs)(l.Z,{groupId:"example",children:[(0,r.jsx)(i.Z,{value:"Browser",label:"Browser",children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"import { Client } from '@bnb-chain/greenfield-js-sdk';\n\nconst client = Client.create(GRPC_URL, String(GREEN_CHAIN_ID), {\n zkCryptoUrl:\n 'https://unpkg.com/@bnb-chain/greenfield-zk-crypto@0.0.3/dist/node/zk-crypto.wasm',\n});\n"})})}),(0,r.jsx)(i.Z,{value:"Nodejs",label:"Nodejs",children:(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-js",children:"const { Client } = require('@bnb-chain/greenfield-js-sdk');\nconst client = Client.create(GRPC_URL, GREEN_CHAIN_ID);\n"})})})]}),"\n",(0,r.jsx)(t.admonition,{type:"tip",children:(0,r.jsx)(t.p,{children:"The browser needs to load wasm manually."})}),"\n",(0,r.jsx)(t.p,{children:"The JS SDK consists of two parts:"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:["Chain: ",(0,r.jsx)(t.a,{href:"https://docs.bnbchain.org/greenfield-docs/docs/api/blockchain-rest",children:"https://docs.bnbchain.org/greenfield-docs/docs/api/blockchain-rest"})]}),"\n",(0,r.jsxs)(t.li,{children:["Storage Provider: ",(0,r.jsx)(t.a,{href:"https://docs.bnbchain.org/greenfield-docs/docs/api/storage-provider-rest",children:"https://docs.bnbchain.org/greenfield-docs/docs/api/storage-provider-rest"})]}),"\n"]})]})}function f(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},8119:(e,t,n)=>{n.d(t,{Z:()=>i});n(79);var r=n(3230);const a={tabItem:"tabItem_jc9D"};var l=n(5250);function i(e){let{children:t,hidden:n,className:i}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.Z)(a.tabItem,i),hidden:n,children:t})}},3880:(e,t,n)=>{n.d(t,{Z:()=>y});var r=n(79),a=n(3230),l=n(4803),i=n(7911),s=n(9121),o=n(3757),c=n(2052),d=n(8991);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: BadYour Docusaurus site did not load properly.
\nA very common reason is a wrong site baseUrl configuration.
\nCurrent configured baseUrl = ${e} ${"/"===e?" (default value)":""}
\nWe suggest trying baseUrl =
\n.comment
can become .namespace--comment
) or replace them with your defined ones (like .editor__comment
). You can even add new classes.",owner:"dvkndn",noCSS:!0},"file-highlight":{title:"File Highlight",description:"Fetch external files and highlight them with Prism. Used on the Prism website itself.",noCSS:!0},"show-language":{title:"Show Language",description:"Display the highlighted language in code blocks (inline code does not show the label).",owner:"nauzilus",noCSS:!0,require:"toolbar"},"jsonp-highlight":{title:"JSONP Highlight",description:"Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).",noCSS:!0,owner:"nauzilus"},"highlight-keywords":{title:"Highlight Keywords",description:"Adds special CSS classes for each keyword for fine-grained highlighting.",owner:"vkbansal",noCSS:!0},"remove-initial-line-feed":{title:"Remove initial line feed",description:"Removes the initial line feed in code blocks.",owner:"Golmote",noCSS:!0},"inline-color":{title:"Inline color",description:"Adds a small inline preview for colors in style sheets.",require:"css-extras",owner:"RunDevelopment"},previewers:{title:"Previewers",description:"Previewers for angles, colors, gradients, easing and time.",require:"css-extras",owner:"Golmote"},autoloader:{title:"Autoloader",description:"Automatically loads the needed languages to highlight the code blocks.",owner:"Golmote",noCSS:!0},"keep-markup":{title:"Keep Markup",description:"Prevents custom markup from being dropped out during highlighting.",owner:"Golmote",optional:"normalize-whitespace",noCSS:!0},"command-line":{title:"Command Line",description:"Display a command line with a prompt and, optionally, the output/response from the commands.",owner:"chriswells0"},"unescaped-markup":{title:"Unescaped Markup",description:"Write markup without having to escape anything."},"normalize-whitespace":{title:"Normalize Whitespace",description:"Supports multiple operations to normalize whitespace in code blocks.",owner:"zeitgeist87",optional:"unescaped-markup",noCSS:!0},"data-uri-highlight":{title:"Data-URI Highlight",description:"Highlights data-URI contents.",owner:"Golmote",noCSS:!0},toolbar:{title:"Toolbar",description:"Attach a toolbar for plugins to easily register buttons on the top of a code block.",owner:"mAAdhaTTah"},"copy-to-clipboard":{title:"Copy to Clipboard Button",description:"Add a button that copies the code block to the clipboard when clicked.",owner:"mAAdhaTTah",require:"toolbar",noCSS:!0},"download-button":{title:"Download Button",description:"A button in the toolbar of a code block adding a convenient way to download a code file.",owner:"Golmote",require:"toolbar",noCSS:!0},"match-braces":{title:"Match braces",description:"Highlights matching braces.",owner:"RunDevelopment"},"diff-highlight":{title:"Diff Highlight",description:"Highlights the code inside diff blocks.",owner:"RunDevelopment",require:"diff"},"filter-highlight-all":{title:"Filter highlightAll",description:"Filters the elements the highlightAll
and highlightAllUnder
methods actually highlight.",owner:"RunDevelopment",noCSS:!0},treeview:{title:"Treeview",description:"A language with special styles to highlight file system tree structures.",owner:"Golmote"}}})},9637:(e,t,n)=>{const r=n(6744),a=n(6123),o=new Set;function i(e){void 0===e?e=Object.keys(r.languages).filter((e=>"meta"!=e)):Array.isArray(e)||(e=[e]);const t=[...o,...Object.keys(Prism.languages)];a(r,e,t).load((e=>{if(!(e in r.languages))return void(i.silent||console.warn("Language does not exist: "+e));const t="./prism-"+e;delete n.c[n(6341).resolve(t)],delete Prism.languages[e],n(6341)(t),o.add(e)}))}i.silent=!1,e.exports=i},3715:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,l=i.length;-1!==n.code.indexOf(a=t(r,l));)++l;return i[l]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(l){for(var s=0;s